mozilla/elasticutils — pull request #181 by justinbuzzni (2013-10-31 06:57:20+00:00)
Title: fixes #1 query_string paging problem(from, size not work) fixed

Paging (start, stop) not work when we use query_string.
So, I fixed that problem.

example code >

_ES_SEARCHER.start = 0
_ES_SEARCHER.stop = 25
_ES_SEARCHER = _ES_SEARCHER.query(name__query_string ={'default_field':'name',\
'query':"\""+query+"\"",'analyzer':'krlucene_tokenizer',\
'phrase_slop':10})

idx = 0
for item in _ES_SEARCHER.query().execute():
print item['name'],item['genre'],item['site_name'],item['date'],item['cmt_num']
idx+=1

# before fix : idx=10
# after fix : idx=25