mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-09 14:34:43 +00:00
The `exists` and `missing` filters need to merge postings lists of all existing terms, which can be very costly, especially on high-cardinality fields. This commit indexes the field names of a document under `_field_names` and reuses it to speed up the `exists` and `missing` filters. This is only enabled for indices that are created on or after Elasticsearch 1.3.0. Close #5659
12 lines
367 B
Plaintext
12 lines
367 B
Plaintext
[[mapping-field-names-field]]
|
|
=== `_field_names`
|
|
|
|
coming[1.3.0]
|
|
|
|
The `_field_names` field indexes the field names of a document, which can later
|
|
be used to search for documents based on the fields that they contain typically
|
|
using the `exists` and `missing` filters.
|
|
|
|
`_field_names` is indexed by default for indices that have been created after
|
|
Elasticsearch 1.3.0.
|