Search code examples
elasticsearchkibana

kibana tag cloud does not count frequency of words in a text field


kibana tag cloud does not count frequency of words in my text field

let's say i have a field named : Ticket_text.keyword and here are some examples:

hello world here I am

hello everybody this is blah

in this world

I want my visualization to show "hello" as the most frequent and "world" as the second etc ... but tag cloud treats my field as a whole not by individual words. how can I fix that?


Solution

  • I was able to do that by updating my index mapping and setting field_data to true, here is my new mapping for "Ticket Text" field :

    mapping = {
        "properties": {
            "Ticket Text": {
                "type": "text",
                "fielddata": True
            }
        }
    }