I have a date field and got the error: 'Fielddata is disabled on text fields by default.'

Hello.

I have a date field mapping as date and got the error: 'Fielddata is disabled on text fields by default.'' on Kibana query.

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.

My field log_processed.time is really a date as you can see on querys bellow:

Blockquote
{
"logstash-2019.12.21" : {
"mappings" : {
"time" : {
"full_name" : "time",
"mapping" : {
"time" : {
"type" : "date"
}
}
}
}
}
}

My versions is:

Elasticsearch and Kibana: 7.4.0

Thank you.

Hey Daniel,

the mapping does not refer to a log_processed.time field, just to another time field. Please share full reproducible examples, otherwise it will be super hard to debug and help. See https://www.elastic.co/help

Thanks a ton!

--Alex

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.