# Value of .keyword in discover for existing indices

**URL:** <https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030>\
**Category:** Kibana\
**Created:** [May 7, 2019, 5:00pm UTC](https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030 "2019-05-07T17:00:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyz2](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xyz2](https://discuss.elastic.co/u/xyz2)\
**Post date:** [May 7, 2019, 5:00pm UTC](https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030/1 "2019-05-07T17:00:56Z")

</div>

Hi,

I have existing indices with type text and .keyword.  
I do not see value of .keyword in discover. How can I see the value for .keyword in discover?

I see only one option - reindex old indices with new mapping . Is there any other option to avoid reindex?

---

<div class="post-metadata">

**Author:** ![lukeelmers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/lukeelmers/32/35230_2.png) [@lukeelmers](https://discuss.elastic.co/u/lukeelmers)\
**Post date:** [May 7, 2019, 10:11pm UTC](https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030/2 "2019-05-07T22:11:54Z")

</div>

Hi @xyz2,

Do you see the `.keyword` field in your Kibana index pattern for the relevant indices? If you've changed your mappings, you may need to refresh the index pattern by clicking the icon at the top of the index pattern page.

[Multi-fields](https://www.elastic.co/guide/en/elasticsearch/reference/current/multi-fields.html) are listed separately in Kibana's index patterns because they relate to your mappings: there's one entry for each field. However, Discover is just going to display the value from the `_source` once, since multi-fields do not change the original `_source` field.

In other words, if you had fields `foo.type` and `foo.keyword`, the values are identical: the only difference is how they are indexed and/or analyzed.

That said, while Discover only shows you the field once, you can still filter in the query bar based on specific field types, e.g. `foo.text:"bar"` or `foo.keyword:"foo bar"`

---

<div class="post-metadata">

**Author:** ![xyz2](https://avatars.discourse-cdn.com/v4/letter/x/e480ec/32.png) [@xyz2](https://discuss.elastic.co/u/xyz2)\
**Post date:** [May 8, 2019, 3:52pm UTC](https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030/3 "2019-05-08T15:52:46Z")

</div>

Hi,

Yes , when I un-select the option "Hide missing fields" , I see .keyword fields as well.  
Note I have set "store":true for .keyword in new mapping template. So for new indexes, I see the value for .keyword.  
But for old indexes, I do not. Is there a way(other than reindexing old indices) to see .keyword values for old indexes as well in discover?

---

<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:** [June 5, 2019, 3:52pm UTC](https://discuss.elastic.co/t/value-of-keyword-in-discover-for-existing-indices/180030/4 "2019-06-05T15:52:46Z")

</div>

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