Skip to content

Commit

Permalink
Document the 'track_total_hits' option for getting complete document …
Browse files Browse the repository at this point in the history
…counts
  • Loading branch information
miff2000 committed Aug 12, 2021
1 parent 4e1260f commit dac1a1b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/search_dsl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,9 @@ just iterate over the ``Response`` object:
for h in response:
print(h.title, h.body)
.. note::
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.
Result
~~~~~~
Expand Down

0 comments on commit dac1a1b

Please sign in to comment.