Skip to content

Commit ce190e7

Browse files
Exists query also works with only doc_values (#103647) (#103655)
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.
1 parent ee99fc4 commit ce190e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/query-dsl/exists-query.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Returns documents that contain an indexed value for a field.
99
An indexed value may not exist for a document's field due to a variety of reasons:
1010

1111
* The field in the source JSON is `null` or `[]`
12-
* The field has `"index" : false` set in the mapping
12+
* The field has `"index" : false` and `"doc_values" : false` set in the mapping
1313
* The length of the field value exceeded an `ignore_above` setting in the mapping
1414
* The field value was malformed and `ignore_malformed` was defined in the mapping
1515

0 commit comments

Comments
 (0)