OpenSearch/x-pack/docs/en/watcher
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
..
actions Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
condition Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
example-watches Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
images [DOCS] Moves troubleshooting and limitations to stack-docs 2018-09-06 10:00:29 -07:00
input Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
java Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
transform Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
trigger [DOCS] Updates Watcher examples for code testing (#31152) 2018-06-22 18:09:37 -07:00
actions.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
condition.asciidoc [Docs] Fix typo in watcher conditions documentation (#30989) 2018-06-04 13:00:57 +02:00
customizing-watches.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
encrypting-data.asciidoc Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744) 2018-09-17 15:35:54 -04:00
example-watches.asciidoc [DOCS] Fix more edit URLs in Stack Overview (#30704) 2018-05-23 09:37:55 -07:00
getting-started.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
gs-index.asciidoc Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
how-watcher-works.asciidoc Make hits.total an object in the search response (#35849) 2018-12-05 19:49:06 +01:00
index.asciidoc [DOCS] Synchronizes captialization in top-level titles (#33605) 2018-09-27 08:36:18 -07:00
input.asciidoc [DOCS] Fix more edit URLs in Stack Overview (#30704) 2018-05-23 09:37:55 -07:00
java.asciidoc [DOCS] Fix more edit URLs in Stack Overview (#30704) 2018-05-23 09:37:55 -07:00
managing-watches.asciidoc Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
release-notes.asciidoc Migrate x-pack-elasticsearch source to elasticsearch 2018-04-20 15:29:54 -07:00
transform.asciidoc [DOCS] Updates Watcher examples for code testing (#31152) 2018-06-22 18:09:37 -07:00
trigger.asciidoc [DOCS] Fix more edit URLs in Stack Overview (#30704) 2018-05-23 09:37:55 -07:00