Skip to content

Commit

Permalink
Exists query also works with only doc_values (elastic#103647)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
danielmitterdorfer committed Dec 21, 2023
1 parent ee99fc4 commit 224446a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/reference/query-dsl/exists-query.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 224446a

Please sign in to comment.