_ignored field
The _ignored field indexes and stores the names of every field in a document that has been ignored when the document was indexed. This can, for example, be the case when the field was malformed and ignore_malformed was turned on, or when a keyword fields value exceeds its optional ignore_above setting.
This field is searchable with term, terms and exists queries, and is returned as part of the search hits.
For instance the below query matches all documents that have one or more fields that got ignored:
GET _search
{
"query": {
"exists": {
"field": "_ignored"
}
}
} Similarly, the below query finds all documents whose @timestamp field was ignored at index time:
GET _search
{
"query": {
"term": {
"_ignored": "@timestamp"
}
}
}
© 2023-2025 Elasticsearch
As of September 2024, Elasticsearch is available under a choice of three licenses: the Server Side Public License (SSPL), the Elastic License, or the AGPLv3 (OSI approved).
Elasticsearch and the Elasticsearch logo are trademarks of Elasticsearch B.V., registered in the U.S. and in other countries.
https://www.elastic.co/guide/en/elasticsearch/reference/7.17/mapping-ignored-field.html