OpenSearch/x-pack/plugin/sql
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
..
jdbc Build: Fix jdbc jar pom to not include deps (#36036) 2018-11-29 09:39:17 -08:00
qa [test] generate unique user names (#36179) 2018-12-03 15:08:00 -08:00
sql-action Update to lucene-8.0.0-snapshot-c78429a554 (#36212) 2018-12-05 12:43:56 +00:00
sql-cli SQL: XPack FeatureSet functionality (#35725) 2018-11-26 07:11:43 +02:00
sql-client Deprecate X-Pack centric SQL endpoints (#35964) 2018-11-27 22:16:21 -05:00
sql-proto Leftover from https://github.com/elastic/elasticsearch/pull/35964 (#36030) 2018-11-29 14:06:48 +02:00
src Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
build.gradle SQL: Move qa directory into sql directory (#34496) 2018-10-30 14:54:15 -04:00