OpenSearch/docs/reference/migration/migrate_7_0
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
..
aggregations.asciidoc Require combine and reduce scripts in scripted metrics aggregation (#33452) 2018-10-03 15:22:01 +01:00
analysis.asciidoc [Analysis] Deprecate Standard Html Strip Analyzer in master (#26719) 2019-01-09 12:42:00 +09:00
api.asciidoc [DOCS] Update X-Pack terminology in security docs (#36564) 2018-12-19 14:53:37 -08:00
cluster.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
discovery.asciidoc [Zen2] Update documentation for Zen2 (#34714) 2018-12-20 13:02:44 +00:00
indices.asciidoc lower fielddata circuit breaker's default limit (#27162) 2018-12-11 11:30:58 +01:00
java.asciidoc Remove the AbstracLifecycleComponent constructor with Settings (#37523) 2019-01-17 09:10:09 +01:00
low_level_restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
mappings.asciidoc Uppercasing some docs section title (#37781) 2019-01-24 22:54:55 +01:00
packaging.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
plugins.asciidoc Add Tribe removal to breaking changes list (#36239) 2018-12-10 10:23:58 -07:00
restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
scripting.asciidoc Delete deprecated getValues from ScriptDocValues (#36183) 2018-12-14 07:56:47 -05:00
search.asciidoc Track total hits up to 10,000 by default (#37466) 2019-01-25 13:45:39 +01:00
settings.asciidoc Remove TLS 1.0 as a default SSL protocol (#37512) 2019-01-25 15:46:39 +11:00
snapshotstats.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00