ignored-field.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [[mapping-ignored-field]]
  2. === `_ignored` field
  3. The `_ignored` field indexes and stores the names of every field in a document
  4. that has been ignored when the document was indexed. This can, for example,
  5. be the case when the field was malformed and <<ignore-malformed,`ignore_malformed`>>
  6. was turned on, when a `keyword` field's value exceeds its optional
  7. <<ignore-above,`ignore_above`>> setting, or when
  8. <<mapping-settings-limit,`index.mapping.total_fields.limit`>> has been reached and
  9. <<mapping-settings-limit,`index.mapping.total_fields.ignore_dynamic_beyond_limit`>>
  10. is set to `true`.
  11. This field is searchable with <<query-dsl-term-query,`term`>>,
  12. <<query-dsl-terms-query,`terms`>> and <<query-dsl-exists-query,`exists`>>
  13. queries, and is returned as part of the search hits.
  14. For instance the below query matches all documents that have one or more fields
  15. that got ignored:
  16. [source,console]
  17. --------------------------------------------------
  18. GET _search
  19. {
  20. "query": {
  21. "exists": {
  22. "field": "_ignored"
  23. }
  24. }
  25. }
  26. --------------------------------------------------
  27. Similarly, the below query finds all documents whose `@timestamp` field was
  28. ignored at index time:
  29. [source,console]
  30. --------------------------------------------------
  31. GET _search
  32. {
  33. "query": {
  34. "term": {
  35. "_ignored": "@timestamp"
  36. }
  37. }
  38. }
  39. --------------------------------------------------