Skip to content

Commit ed6d0a1

Browse files
miff2000sethmlarson
authored andcommitted
Document the 'track_total_hits' option for getting complete document counts
1 parent de791f6 commit ed6d0a1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/search_dsl.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,9 @@ just iterate over the ``Response`` object:
532532
for h in response:
533533
print(h.title, h.body)
534534
535+
.. note::
536+
537+
If you are only seeing partial results (e.g. 10000 or even 10 results), consider using the option ``s.extra(track_total_hits=True)`` to get a full hit count.
535538

536539
Result
537540
~~~~~~

0 commit comments

Comments
 (0)