In Elasticserach I have a date field mapping as date and got the error: 'Fielddata is disabled on text fields by default.'' on Kibana query.
The full error message is: "Fielddata is disabled on text fields by default. Set fielddata=true on [log_processed.time] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."
The field log_processed.time is a date type.I read the documentation: https://www.elastic.co/guide/en/elasticsearch/reference/current/fielddata.html and understand this type of error happens only with text fields.
I tried ignore_malformed: https://www.elastic.co/guide/en/elasticsearch/reference/current/ignore-malformed.html, but not working.
I am using the 7.4.1 version of elastic.
Thank you.