# Kibana doesn't recognize keyword fields

**URL:** <https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586>\
**Category:** Kibana\
**Created:** [August 9, 2019, 10:12am UTC](https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586 "2019-08-09T10:12:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulGor](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@JulGor](https://discuss.elastic.co/u/JulGor)\
**Post date:** [August 9, 2019, 10:12am UTC](https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586/1 "2019-08-09T10:12:01Z")

</div>

Hi,

I realized that Kibana is not recognizing some fields that are mapped as "text" with a second field "keyword".

This is the mapping of my index:

![mapping](https://us1.discourse-cdn.com/elastic/original/3X/b/1/b12cb84c304f9359db5751e84048611efe5c100c.png)

And this is the select menu when I'm trying to use them in a "Term" aggregation for a visualization:

![selec_menu](https://us1.discourse-cdn.com/elastic/original/3X/0/f/0fa32b2254617c616d39aa1847194fbad00e8c54.png)

In fact, if I force and chose those fields whose keyword field is not recognized, Kibana launch the expected error:

"Fielddata is disabled on text fields by default. Set fielddata=true on [billing\_address.zip] in order to load fielddata in memory by uninverting the inverted index. Note that this can however use significant memory. Alternatively use a keyword field instead."

Anyone knows why Kibana is not recognizing the keyword fields of those fields but it does for the rest of fields when they all have exactly the same mapping?

Many thanks!

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [August 9, 2019, 12:23pm UTC](https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586/2 "2019-08-09T12:23:00Z")

</div>

Hi @JulGor,

Have you tried to refresh the Kibana mapping cache in `Management -> Index Patterns` : choose your index pattern and press "Refresh field list" button (top right corner, near the Delete button)?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![JulGor](https://avatars.discourse-cdn.com/v4/letter/j/94ad74/32.png) [@JulGor](https://discuss.elastic.co/u/JulGor)\
**Post date:** [August 12, 2019, 8:55am UTC](https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586/3 "2019-08-12T08:55:38Z")

</div>

That was the issue. Many thanks!!

---

<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:** [September 9, 2019, 8:55am UTC](https://discuss.elastic.co/t/kibana-doesnt-recognize-keyword-fields/194586/4 "2019-09-09T08:55:42Z")

</div>

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