OpenSearch/docs/reference/aggregations
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
..
bucket Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
matrix Allow `_doc` as a type. (#27816) 2017-12-14 17:47:53 +01:00
metrics Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
pipeline [Docs] Section header preceded by blank line (#34340) 2018-11-08 12:44:13 +01:00
bucket.asciidoc Add parent-aggregation to parent-join module (#34210) 2018-11-08 14:13:00 +01:00
matrix.asciidoc
metrics.asciidoc median absolute deviation agg (#34482) 2018-10-30 07:22:52 -07:00
misc.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
pipeline.asciidoc Add a MovingFunction pipeline aggregation, deprecate MovingAvg agg (#29594) 2018-05-16 10:57:00 -04:00