mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 09:54:06 -04:00
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 |
||
---|---|---|
.. | ||
analyzer.asciidoc | ||
boost.asciidoc | ||
coerce.asciidoc | ||
copy-to.asciidoc | ||
doc-values.asciidoc | ||
dynamic.asciidoc | ||
eager-global-ordinals.asciidoc | ||
enabled.asciidoc | ||
fielddata.asciidoc | ||
format.asciidoc | ||
ignore-above.asciidoc | ||
ignore-malformed.asciidoc | ||
index-options.asciidoc | ||
index-phrases.asciidoc | ||
index-prefixes.asciidoc | ||
index.asciidoc | ||
multi-fields.asciidoc | ||
normalizer.asciidoc | ||
norms.asciidoc | ||
null-value.asciidoc | ||
position-increment-gap.asciidoc | ||
properties.asciidoc | ||
search-analyzer.asciidoc | ||
similarity.asciidoc | ||
store.asciidoc | ||
term-vector.asciidoc |