Skip to content
Permalink
Browse files
Added support for size and multiple fields in segmentation.
  • Loading branch information
Michelle Beard committed Jul 22, 2016
1 parent 47e4ea1 commit 51fc2b6336d46979e966276f9d4fce60c4ac39cd
Showing 1 changed file with 3 additions and 2 deletions.
@@ -53,7 +53,8 @@ def segment (app, app_type=None, params=''):
# 'scroll': args.get ('scroll', False),
# 'filters': request_args.getlist ('fq')
query = {}

query ['size'] = size

if q:
res = q.split(":")
key = res [0]
@@ -64,7 +65,7 @@ def segment (app, app_type=None, params=''):

if len (fields) > 0:
ex = {
"include" : [fields]
"include" : fields.split(",")
}
query ['_source'] = ex

0 comments on commit 51fc2b6

Please sign in to comment.