OpenSearch/docs/reference/search
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
..
request Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
suggesters Remove remaining occurances of "include_type_name=true" in docs (#37646) 2019-01-22 15:13:52 +01:00
count.asciidoc Deprecate types in count and msearch. (#35421) 2018-11-16 13:04:43 -08:00
explain.asciidoc Deprecate types in explain requests. (#35611) 2018-12-10 19:45:13 -08:00
field-caps.asciidoc In the field capabilities API, remove support for providing fields in the request body. (#30185) 2018-04-27 16:14:11 -07:00
multi-search.asciidoc Fix typo in multi-search.asciidoc (#37060) 2019-01-02 10:32:42 +01:00
profile.asciidoc [DOCS] Adds missing anchors for profile API 2018-12-18 15:20:19 -08:00
rank-eval.asciidoc [DOCS] Various spelling corrections (#37046) 2019-01-07 14:44:12 +01:00
request-body.asciidoc Expose sequence number and primary terms in search responses (#37639) 2019-01-23 09:01:58 +01:00
search-shards.asciidoc Default to one shard (#30539) 2018-05-14 12:22:35 -04:00
search-template.asciidoc Remove references to multiple types in the search documentation. (#34625) 2018-10-19 09:47:34 -07:00
search.asciidoc Remove references to multiple types in the search documentation. (#34625) 2018-10-19 09:47:34 -07:00
suggesters.asciidoc [Docs] Emphazise suggest behaviour with missing query part (#35393) 2018-11-28 12:01:27 +01:00
uri-request.asciidoc Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
validate.asciidoc Use new bulk API endpoint in the docs (#37698) 2019-01-23 09:46:28 +01:00