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

**URL:** <https://discuss.elastic.co/t/kibana-tag-cloud-does-not-count-frequency-of-words-in-a-text-field/326982>\
**Category:** Kibana\
**Created:** [March 4, 2023, 12:51pm UTC](https://discuss.elastic.co/t/kibana-tag-cloud-does-not-count-frequency-of-words-in-a-text-field/326982 "2023-03-04T12:51:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mehran\_Goodarzi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mehran_goodarzi/32/118032_2.png) [@Mehran\_Goodarzi](https://discuss.elastic.co/u/Mehran_Goodarzi)\
**Post date:** [March 4, 2023, 12:51pm UTC](https://discuss.elastic.co/t/kibana-tag-cloud-does-not-count-frequency-of-words-in-a-text-field/326982/1 "2023-03-04T12:51:58Z")

</div>

Hi There,  
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 ... in my dashboard, but tag cloud treats my field as a whole not by individual words. how can I fix that?

---

<div class="post-metadata">

**Author:** ![eMitch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emitch/32/93607_2.png) [@eMitch](https://discuss.elastic.co/u/eMitch)\
**Post date:** [March 5, 2023, 2:38am UTC](https://discuss.elastic.co/t/kibana-tag-cloud-does-not-count-frequency-of-words-in-a-text-field/326982/2 "2023-03-05T02:38:54Z")

</div>

Hi @Mehran_Goodarzi and welcome to the community!

Take a look [at this thread](https://discuss.elastic.co/t/kibana-word-cloud-on-text-field/250523).

the TL;DR:

Keyword fields are indexed as a whole value, whereas a `Text` field is indexed as individual terms or tokens.  
You will need to use the `Text` field and make sure it has `"fielddata": true` so it is aggregatable.  
This may require re-mapping or reindexing depending on your situation.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 2, 2023, 2:39am UTC](https://discuss.elastic.co/t/kibana-tag-cloud-does-not-count-frequency-of-words-in-a-text-field/326982/3 "2023-04-02T02:39:21Z")

</div>

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