1
votes

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:

  • News title (text)
  • News body (text): the text of the article enter image description here
  • Top 5 keywords (list of keywords). It contains the top 5 keywords of the body

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.

1

1 Answers

2
votes

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