aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_ingest.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-05-31 18:40:18 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-05-31 18:40:18 -0700
commitec2d9cc45c24cac4ade0cb39e319ffc405f925f9 (patch)
treebb51d709fd2fa9fc28fefc3fcf04f11557506370 /python/fatcat_ingest.py
parent837eb9f0d4dcf47f2006be472dc26905b9e28e53 (diff)
downloadfatcat-ec2d9cc45c24cac4ade0cb39e319ffc405f925f9.tar.gz
fatcat-ec2d9cc45c24cac4ade0cb39e319ffc405f925f9.zip
ingest: don't 'track_total_hits' for ES 7.x count()
Diffstat (limited to 'python/fatcat_ingest.py')
-rwxr-xr-xpython/fatcat_ingest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_ingest.py b/python/fatcat_ingest.py
index 993b9cfa..1a53a7dc 100755
--- a/python/fatcat_ingest.py
+++ b/python/fatcat_ingest.py
@@ -68,7 +68,7 @@ def _run_search_dump(args, search):
])
counts = Counter({'ingest_request': 0, 'elasticsearch_release': 0, 'estimate': 0})
- search = search.params(track_total_hits=True)
+ search = search.params()
counts['estimate'] = search.count()
print("Expecting {} release objects in search queries".format(counts['estimate']), file=sys.stderr)