OpenSearch/docs/reference/migration/migrate_7_0
Jim Ferenczi 18866c4c0b
Make hits.total an object in the search response (#35849)
This commit changes the format of the `hits.total` in the search response to be an object with
a `value` and a `relation`. The `value` indicates the number of hits that match the query and the
`relation` indicates whether the number is accurate (in which case the relation is equals to `eq`)
or a lower bound of the total (in which case it is equals to `gte`).
This change also adds a parameter called `rest_total_hits_as_int` that can be used in the
search APIs to opt out from this change (retrieve the total hits as a number in the rest response).
Note that currently all search responses are accurate (`track_total_hits: true`) or they don't contain
`hits.total` (`track_total_hits: true`). We'll add a way to get a lower bound of the total hits in a
follow up (to allow numbers to be passed to `track_total_hits`).

Relates #33028
2018-12-05 19:49:06 +01:00
..
aggregations.asciidoc Require combine and reduce scripts in scripted metrics aggregation (#33452) 2018-10-03 15:22:01 +01:00
analysis.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
api.asciidoc Remove the deprecated _termvector endpoint. (#36131) 2018-12-03 10:22:42 -08:00
cluster.asciidoc Add cluster-wide shard limit warnings (#34021) 2018-10-23 16:35:10 -06:00
indices.asciidoc fix broken doc due to `elasticsearch-translog` removal 2018-10-01 17:54:32 +02:00
java.asciidoc Remove the deprecated _termvector endpoint. (#36131) 2018-12-03 10:22:42 -08:00
low_level_restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
mappings.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
packaging.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
plugins.asciidoc DOCS: Add SecurityExtension breaking change (#35358) 2018-11-09 16:57:49 +11:00
restclient.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00
scripting.asciidoc Add migration info for missing values in script 2018-10-03 11:56:18 -04:00
search.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
settings.asciidoc Remove deprecated audit settings (#35205) 2018-11-08 14:06:47 +02:00
snapshotstats.asciidoc [DOCS] Synchronize location of Breaking Changes (#33588) 2018-09-27 08:41:38 -07:00