Skip to content

Commit 3d28a8a

Browse files
Merge pull request #930 from syucream/fix/exact-total-count
Show exact total number if the number exceeds 10000
2 parents adc7ce3 + c9bb510 commit 3d28a8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

airone/lib/elasticsearch.py

+1
Original file line numberDiff line numberDiff line change
@@ -895,6 +895,7 @@ def execute_query(query: Dict[str, str], size: int = 0) -> Dict[str, Any]:
895895
"body": query,
896896
"ignore": [404],
897897
"sort": ["name.keyword:asc"],
898+
"track_total_hits": True,
898899
}
899900
if size and isinstance(size, int):
900901
kwargs["size"] = size

0 commit comments

Comments
 (0)