Skip to content

Commit

Permalink
fixed search parameter bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kunihiko Kido committed Mar 25, 2015
1 parent 4a4c898 commit 6856d7c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -491,8 +491,8 @@ def run(self):
def on_done(self, analyzer):
path = make_path(self.index, '_analyze')
body = self.get_selection()
params = DEFAULT_PARAMS
params.update(dict(analyzer=analyzer))
params = dict(analyzer=analyzer)
params.update(DEFAULT_PARAMS)
self.request_post(path, body=body, params=params)


Expand Down Expand Up @@ -692,8 +692,8 @@ def on_done(self, index):
search_type = self.search_types[selected]
path = make_path(self.index, self.doc_type, '_search')
body = self.get_selection()
params = DEFAULT_PARAMS
params.update(dict(search_type=search_type))
params = dict(search_type=search_type)
params.update(DEFAULT_PARAMS)
self.request_post(path, body=body, params=params)


Expand All @@ -704,8 +704,8 @@ def run(self):

def on_done(self, query):
path = make_path(self.index, self.doc_type, '_search')
params = DEFAULT_PARAMS
params.update(dict(q=query))
params = dict(q=query)
params.update(DEFAULT_PARAMS)
self.request_get(path, params=params)


Expand Down

0 comments on commit 6856d7c

Please sign in to comment.