raul
raul

Reputation: 121

Tag cloud with text field in Kibana

I'm new to Elastic and Kibana. I'm creating my first visualizations in Kibana. I have a index with news with the following fields:

I created a tag cloud with the "top 5 keywords" field. I'd like to do the same with the "body". However, I don't see the field available when creating the visualization: enter image description here

Here is a screenshot of my mapping: enter image description here

I assume there's something wrong with my mapping but I cannot figure that out. any help?! Many thanks! Raul.

Upvotes: 1

Views: 4527

Answers (1)

ozlevka
ozlevka

Reputation: 2156

Each visualization is a kind of aggregation.

text type not allow aggregations by default. This is to keep the heap memory amount.

before you enable fielddata on the body be sure that you know what you do

For enable, fielddata on body field add to your mapping

{
  "properties": {
    "body": { 
      "type":     "text",
      "fielddata": true
    }
  }
}

documentation

Upvotes: 2

Related Questions