field-names-field.asciidoc 1001 B

12345678910111213141516171819202122
  1. [[mapping-field-names-field]]
  2. === `_field_names` field
  3. The `_field_names` field used to index the names of every field in a document that
  4. contains any value other than `null`. This field was used by the
  5. <<query-dsl-exists-query,`exists`>> query to find documents that
  6. either have or don't have any non-+null+ value for a particular field.
  7. Now the `_field_names` field only indexes the names of fields that have
  8. `doc_values` and `norms` disabled. For fields which have either `doc_values`
  9. or `norm` enabled the <<query-dsl-exists-query,`exists`>> query will still
  10. be available but will not use the `_field_names` field.
  11. [[disable-field-names]]
  12. ==== Disabling `_field_names`
  13. Disabling `_field_names` is no longer possible. It is now enabled by default
  14. because it no longer carries the index overhead it once did.
  15. NOTE: Support for disabling `_field_names` has been removed. Using it on new
  16. indices will throw an error. Using it in pre-8.0 indices is still allowed but
  17. issues a deprecation warning.