# Changed mapping from text+keyword to keyword, queries not working now

**URL:** https://discuss.elastic.co/t/changed-mapping-from-text-keyword-to-keyword-queries-not-working-now/208723
**Category:** Elasticsearch
**Created:** [November 20, 2019, 2:47pm UTC](https://discuss.elastic.co/t/changed-mapping-from-text-keyword-to-keyword-queries-not-working-now/208723 "2019-11-20T14:47:24Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![nahiko2000](https://avatars.discourse-cdn.com/v4/letter/n/bc8723/32.png) [@nahiko2000](https://discuss.elastic.co/u/nahiko2000)
#### Post date: [November 20, 2019, 2:47pm UTC](https://discuss.elastic.co/t/changed-mapping-from-text-keyword-to-keyword-queries-not-working-now/208723/1 "2019-11-20T14:47:24Z")

</div>

Hi!

I have some indices which some field mappings where text and keyword.  
In Kibana I used "field.keyword" to use the keyword mapped value.  
As well, in an application I made I used queries pointing to "field.keyword".

Now for the new indices I changed the mapping to just keyword, since I am not really using text features, however, in Kibana now all my visualizations are not working, because they are looking for "field.keyword" but as the field is no text+keyword mapped, I have to look for it as just "field". The same happens to the application.

Should not it work as "field.keyword" ?  
I understand it must work as just "field", but it sould ALSO work as "field.keyword".

Is there anything I can do to make it work without changing all my Kibana visualizations as well as all my application queries?

Thanks a lot in advance!

---

<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: [December 18, 2019, 2:47pm UTC](https://discuss.elastic.co/t/changed-mapping-from-text-keyword-to-keyword-queries-not-working-now/208723/2 "2019-12-18T14:47:25Z")

</div>

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