From f639d77153f1c68c1df816d6abe529fd919d0e1b Mon Sep 17 00:00:00 2001 From: Mikhail Sayapin Date: Fri, 24 Feb 2012 14:40:43 +0800 Subject: [PATCH] Fixes returning wrong items with start > 0 --- pyes/es.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyes/es.py b/pyes/es.py index e883b5ce..a2120fee 100644 --- a/pyes/es.py +++ b/pyes/es.py @@ -1496,7 +1496,7 @@ def __init__(self, connection, query, indices=None, doc_types=None, query_params self.start = self.query.start or 0 self._max_item = self.query.size self._current_item = 0 - self.chuck_size = self.query.bulk_read or 10 + self.chuck_size = self.query.bulk_read or self.query.size or 10 def _do_search(self, auto_increment=False): self.iterpos = 0