I'm having trouble with mapping field in elasticsearch. The field is a string field with freetext. I want the field to be 'analyzed', and for the analyzed elements to be aggregatable.
The problem is when I load the data to elasticsaerch, the field shows as 'analyzed' but not 'aggregatable' in the kibana index settings screen.
I want to be able to aggregate the terms in the 'text' field, so i can build visualisations in kibana.
My mappings file:
{
"dynamic": "true",
"properties": {
"username": {"type" : "keyword"},
"date": {"type": "date", "format" : "yyyy-MM-dd HH:mm"},
"text": {"type": "text","index" : "analyzed"}
}
}