OpenSearch/docs/reference/mapping
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
..
dynamic Fix an inaccuracy in the dynamic templates documentation. (#32890) 2018-08-20 11:00:11 -07:00
fields [Docs] Add example for updating meta field (#35893) 2018-11-28 12:04:57 +01:00
params Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
types Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
dynamic-mapping.asciidoc Reject updates to the `_default_` mapping. (#29165) 2018-03-21 10:44:11 +01:00
fields.asciidoc Fix docs of the `_ignored` meta field. 2018-05-02 11:43:50 +02:00
params.asciidoc Improve docs for index_prefixes option (#35778) 2018-11-22 09:20:46 +00:00
removal_of_types.asciidoc Remove include_type_name from the relevant APIs. (#35192) 2018-11-06 14:33:48 -08:00
types.asciidoc New plugin - Annotated_text field type (#30364) 2018-09-18 10:25:27 +01:00