Skip to content

Commit acb44d3

Browse files
barbarahuiamywieliczka
authored andcommitted
Add track_total_hits to es queries
Return total hit count, not just up to 10,000 limit
1 parent 010ad3a commit acb44d3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

calisphere/es_cache_retry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ def query_encode(query_string: str = None,
303303
if start:
304304
es_params.update({'from': start})
305305

306+
es_params.update({'track_total_hits': True})
306307
return es_params
307308

308309

0 commit comments

Comments
 (0)