OpenSearch/docs/reference/index-modules
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
..
allocation Fix some typos (#18746) 2016-06-07 16:41:39 +02:00
allocation.asciidoc Docs: Documented index prioritization 2015-07-15 18:05:42 +02:00
analysis.asciidoc Fixing typo 2015-10-26 16:48:20 -04:00
index-sorting.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
mapper.asciidoc Docs: Mapping docs completely rewritten for 2.0 2015-08-06 17:24:51 +02:00
merge.asciidoc [DOCS] Added 'on a single shard' to description of max_thread_count. Closes 28518 (#29686) 2018-04-27 09:29:27 -07:00
similarity.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
slowlog.asciidoc Logging: Make node name consistent in logger (#31588) 2018-07-31 10:54:24 -04:00
store.asciidoc Enable avoiding mmap bootstrap check (#32421) 2018-08-21 11:02:25 -04:00
translog.asciidoc drop elasticsearch-translog for 7.0 (#33373) 2018-10-01 16:21:14 +02:00