From 224446a1c9f2337490a69205cc50ac4d344e8024 Mon Sep 17 00:00:00 2001 From: Daniel Mitterdorfer Date: Thu, 21 Dec 2023 16:33:42 +0100 Subject: [PATCH] Exists query also works with only doc_values (#103647) With this commit we amend the docs for the `exists` query to clarify that it works with either `index` *or* `doc_values` set to `true` in the mapping. Only if both are disabled, the `exists` query won't work. --- docs/reference/query-dsl/exists-query.asciidoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/reference/query-dsl/exists-query.asciidoc b/docs/reference/query-dsl/exists-query.asciidoc index 75d1b07ea3851..9a9f642daa3f4 100644 --- a/docs/reference/query-dsl/exists-query.asciidoc +++ b/docs/reference/query-dsl/exists-query.asciidoc @@ -9,7 +9,7 @@ Returns documents that contain an indexed value for a field. An indexed value may not exist for a document's field due to a variety of reasons: * The field in the source JSON is `null` or `[]` -* The field has `"index" : false` set in the mapping +* The field has `"index" : false` and `"doc_values" : false` set in the mapping * The length of the field value exceeded an `ignore_above` setting in the mapping * The field value was malformed and `ignore_malformed` was defined in the mapping