OpenSearch/plugins
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
..
analysis-icu Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-kuromoji Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-nori Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-phonetic Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-smartcn Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-stempel Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
analysis-ukrainian Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
discovery-azure-classic Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
discovery-ec2 Removes AbstractComponent from several classes (#35566) 2018-11-16 20:50:18 +01:00
discovery-gce Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
examples Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
ingest-attachment Add a new "contains" feature (#34738) 2018-10-25 08:50:50 +03:00
ingest-geoip Core: Replace deprecated Loggers calls with LogManager. (#34691) 2018-10-29 15:52:30 -04:00
ingest-user-agent Add a new "contains" feature (#34738) 2018-10-25 08:50:50 +03:00
mapper-annotated-text Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
mapper-murmur3 Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
mapper-size Upgrade to lucene-8.0.0-snapshot-31d7dfe6b1 (#35224) 2018-11-06 11:55:23 +01:00
repository-azure Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
repository-gcs Remove AbstractComponent from AbstractLifecycleComponent (#35560) 2018-11-19 09:51:32 -07:00
repository-hdfs Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
repository-s3 Testing conventions task part 2 (#36107) 2018-12-05 14:20:01 +02:00
store-smb Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
transport-nio Upgrade Netty 4.3.32.Final (#36102) 2018-11-30 09:02:10 -07:00
build.gradle Reorganize license files 2018-04-20 15:33:59 -07:00