OpenSearch/docs/reference/search/request
Jim Ferenczi 787acb14b9
Track total hits up to 10,000 by default (#37466)
This commit changes the default for the `track_total_hits` option of the search request
to `10,000`. This means that by default search requests will accurately track the total hit count
up to `10,000` documents, requests that match more than this value will set the `"total.relation"`
to `"gte"` (e.g. greater than or equals) and the `"total.value"` to `10,000` in the search response.
Scroll queries are not impacted, they will continue to count the total hits accurately.
The default is set back to `true` (accurate hit count) if `rest_total_hits_as_int` is set in the search request.
I choose `10,000` as the default because that's also the number we use to limit pagination. This means that users will be able to know how far they can jump (up to 10,000) even if the total number of hits is not accurate.

Closes #33028
2019-01-25 13:45:39 +01:00
..
collapse.asciidoc [Docs] Remove repeating words (#33087) 2018-08-28 13:16:43 +02:00
docvalue-fields.asciidoc Search: Support of wildcard on docvalue_fields (#32980) 2018-08-23 10:04:00 +02:00
explain.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
from-size.asciidoc Add CONSOLE to from/size docs 2016-05-18 11:54:41 +02:00
highlighters-internal.asciidoc Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
highlighting.asciidoc Remove `include_type_name` in asciidoc where possible (#37568) 2019-01-18 09:34:11 +01:00
index-boost.asciidoc Resolve index names in indices_boost 2016-12-11 21:41:49 +09:00
inner-hits.asciidoc Expose sequence number and primary terms in search responses (#37639) 2019-01-23 09:01:58 +01:00
min-score.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
named-queries-and-filters.asciidoc Add indent 2016-05-19 09:33:29 +02:00
post-filter.asciidoc Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
preference.asciidoc Improve docs for search preferences (#32159) 2018-07-18 12:58:17 +01:00
query.asciidoc Add CONSOLE to several trivial search request docs. 2016-05-18 13:15:19 +02:00
rescore.asciidoc [Docs] Clarify accepted sort case (#31605) 2018-07-06 10:11:36 +02:00
script-fields.asciidoc [Docs] Fix script-fields snippet execution (#30693) 2018-05-22 20:22:42 +02:00
scroll.asciidoc Added soft limit to open scroll contexts #25244 (#36009) 2018-12-03 19:57:10 +01:00
search-after.asciidoc [Docs] Clarify search_after behavior 2018-11-30 14:30:23 +01:00
search-type.asciidoc Fix a grammatical error in the 'search types' documentation. 2018-05-22 22:09:04 -07:00
sort.asciidoc Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
source-filtering.asciidoc Fixed naming inconsistency for fields/stored_fields in the APIs (#20166) 2016-09-13 20:54:41 +02:00
stored-fields.asciidoc Remove usage of multi-types from the docs and added a page explaining type removal (#25543) 2017-07-05 12:30:19 +02:00
track-total-hits.asciidoc Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
version-and-seq-no.asciidoc Expose sequence number and primary terms in search responses (#37639) 2019-01-23 09:01:58 +01:00