Skip to content

Commit dac1a1b

Browse files
authored
Document the 'track_total_hits' option for getting complete document counts
1 parent 4e1260f commit dac1a1b

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
@@ -557,6 +557,9 @@ just iterate over the ``Response`` object:
557557
for h in response:
558558
print(h.title, h.body)
559559
560+
.. note::
561+
562+
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.
560563
561564
Result
562565
~~~~~~

0 commit comments

Comments
 (0)