diff options
Diffstat (limited to 'python/fatcat_ingest.py')
-rwxr-xr-x | python/fatcat_ingest.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_ingest.py b/python/fatcat_ingest.py index f1139a28..993b9cfa 100755 --- a/python/fatcat_ingest.py +++ b/python/fatcat_ingest.py @@ -28,7 +28,6 @@ def _init_search(args): client = elasticsearch.Elasticsearch(args.elasticsearch_endpoint) search = Search(using=client, index=args.elasticsearch_index) - search = search.params(track_total_hits=True) return search @@ -69,6 +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) counts['estimate'] = search.count() print("Expecting {} release objects in search queries".format(counts['estimate']), file=sys.stderr) |