Options not available in Kibana Discover for keyword field

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

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 ?

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:

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