From ec2d9cc45c24cac4ade0cb39e319ffc405f925f9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 31 May 2021 18:40:18 -0700 Subject: ingest: don't 'track_total_hits' for ES 7.x count() --- python/fatcat_ingest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3