The presence of this field in my display
"answer": { "type": "text", "fields": { "keyword": { "type": "keyword", "ignore_above": 256 } } },
I am trying to perform this aggregation
"aggs": { "answer": { "terms": { "field": "answer" } },
but i get this error
"type": "illegal_argument_exception", "reason": "Fielddata is disabled on text fields by default. Set fielddata=true on [answer] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory."
Do I need to change my mapping or am I using the wrong aggregation? (just upgraded from 2.x to 5.1)
source share