You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2019/04/25 23:34:51 UTC
[incubator-ponymail] branch master updated: Fix default scroll size
This is an automated email from the ASF dual-hosted git repository.
humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail.git
The following commit(s) were added to refs/heads/master by this push:
new c25be8c Fix default scroll size
c25be8c is described below
commit c25be8c78c78f2888189ef134ecc3688cbb9d27b
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Thu Apr 25 18:34:47 2019 -0500
Fix default scroll size
This should have been 100 from the start.
---
tools/elastic.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/elastic.py b/tools/elastic.py
index 3f225de..85496c5 100755
--- a/tools/elastic.py
+++ b/tools/elastic.py
@@ -118,7 +118,7 @@ class Elastic:
**kwargs
)
- def scan_and_scroll(self, doc_type='mbox', scroll='3m', size = 1, **kwargs):
+ def scan_and_scroll(self, doc_type='mbox', scroll='3m', size = 100, **kwargs):
""" Run a backwards compatible scan/scroll, passing an iterator
that returns one page of hits per iteration. This
incorporates es.scroll for continuous iteration, and thus the