OpenSearch/libs
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
..
cli add elasticsearch-shard tool (#32281) 2018-09-19 10:28:22 +02:00
core Add a frozen engine implementation (#34357) 2018-11-07 20:23:35 +01:00
dissect Run forbidden api checks with runtimeJavaVersion (#32947) 2018-08-22 09:05:22 +03:00
grok ingest: grok remove duplicated patterns (#35886) 2018-11-26 11:13:46 -06:00
nio Add sni name to SSLEngine in nio transport (#35920) 2018-11-27 09:06:52 -07:00
plugin-classloader Build: Fail if any libs depend on non-core libs (#29336) 2018-04-16 11:49:27 -04:00
secure-sm Run forbidden api checks with runtimeJavaVersion (#32947) 2018-08-22 09:05:22 +03:00
x-content Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
build.gradle Rename elasticsearch-core to core (#31185) 2018-06-07 16:50:21 -04:00