# Options not available in Kibana Discover for keyword field

**URL:** <https://discuss.elastic.co/t/options-not-available-in-kibana-discover-for-keyword-field/315872>\
**Category:** Kibana\
**Created:** [October 5, 2022, 12:14pm UTC](https://discuss.elastic.co/t/options-not-available-in-kibana-discover-for-keyword-field/315872 "2022-10-05T12:14:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaurav\_soni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/gaurav_soni/32/111694_2.png) [@gaurav\_soni](https://discuss.elastic.co/u/gaurav_soni)\
**Post date:** [October 5, 2022, 12:14pm UTC](https://discuss.elastic.co/t/options-not-available-in-kibana-discover-for-keyword-field/315872/1 "2022-10-05T12:14:14Z")

</div>

I imported some data , one of the fields had a mapping of type "text" , i later modified the mapping using the following.

```auto
PUT /restaurant_data/_mapping
{
  "properties": {
    "name": {
      "type": "text",
      "fields": {
        "keyword": {
          "type": "keyword",
          "ignore_above": 256
        }
      }
    }
  }
}

```

I also did a refresh index from index management. When applying filters in the discover , i am not getting any of the values. What am i missing ?

---

<div class="post-metadata">

**Author:** ![JLeysens](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jleysens/32/67404_2.png) [@JLeysens](https://discuss.elastic.co/u/JLeysens)\
**Post date:** [October 5, 2022, 2:18pm UTC](https://discuss.elastic.co/t/options-not-available-in-kibana-discover-for-keyword-field/315872/2 "2022-10-05T14:18:01Z")

</div>

Hello @gaurav_soni ! From your description, it sounds like you have already ingested data and want to change the already indexed data's type. You will need to create a new index and use the reindex API to get your new mapping to take affect for existing data:

> **[Update mapping API | Elasticsearch Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-put-mapping.html#updating-field-mappings)**

---

<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:** [November 2, 2022, 2:18pm UTC](https://discuss.elastic.co/t/options-not-available-in-kibana-discover-for-keyword-field/315872/3 "2022-11-02T14:18:56Z")

</div>

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