Terms aggregation on analyzed string field

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"}
    }
}

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