Repository: incubator-senssoft-distill Updated Branches: refs/heads/master a9207bb94 -> db6ae4b15
Fixed bug Project: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-distill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-distill/commit/db6ae4b1 Tree: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-distill/tree/db6ae4b1 Diff: http://git-wip-us.apache.org/repos/asf/incubator-senssoft-distill/diff/db6ae4b1 Branch: refs/heads/master Commit: db6ae4b151f1f46863f2f66b36918e01891f103d Parents: a9207bb Author: msbeard <msbe...@apache.org> Authored: Tue Sep 19 15:25:45 2017 -0400 Committer: msbeard <msbe...@apache.org> Committed: Tue Sep 19 15:25:45 2017 -0400 ---------------------------------------------------------------------- distill/algorithms/graphs/graph.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-senssoft-distill/blob/db6ae4b1/distill/algorithms/graphs/graph.py ---------------------------------------------------------------------- diff --git a/distill/algorithms/graphs/graph.py b/distill/algorithms/graphs/graph.py index b12a046..174e636 100755 --- a/distill/algorithms/graphs/graph.py +++ b/distill/algorithms/graphs/graph.py @@ -70,7 +70,7 @@ class GraphAnalytics (object): if events: include_events = { "terms": { - "type.keyword": events + "type": events } } filter_query.append(include_events) @@ -81,7 +81,7 @@ class GraphAnalytics (object): if target_in: include_targets = { "terms": { - "target.keyword": target_in + "target": target_in } } @@ -91,7 +91,7 @@ class GraphAnalytics (object): for target in target_out: res = { "term": { - "target.keyword": target + "target": target } } must_not_query.append(res) @@ -437,8 +437,8 @@ class GraphAnalytics (object): res['nodes'] = node_map res['links'] = links res['sessions'] = sessions - with open('sankey.json', 'w') as outfile: - json.dump(res, outfile, sort_keys=False, indent=4) + # with open('sankey.json', 'w') as outfile: + # json.dump(res, outfile, sort_keys=False, indent=4) # with open('data.txt', 'w') as outfile: # json.dump(intervalSessions, outfile, indent=4, sort_keys=False)