# Can I update analyzer in field without recreating the index?

**URL:** <https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 12:34pm UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182 "2019-12-02T12:34:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysunil702](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ysunil702/32/61700_2.png) [@ysunil702](https://discuss.elastic.co/u/ysunil702)\
**Post date:** [December 2, 2019, 12:34pm UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182/1 "2019-12-02T12:34:19Z")

</div>

Following index is created.

```auto
 "ticketId": {
        "type": "text",
        "fields": {
          "completion": {
            "type": "completion",
            "analyzer": "simple",
            "preserve_separators": true,
            "preserve_position_increments": true,
            "max_input_length": 50,
            "contexts": [
              {
                "name": "mailboxIdStr",
                "type": "CATEGORY",
                "path": "mailboxIdStr"
              }
            ]
          },
          "keyword": {
            "type": "keyword"
          }
        },
        "analyzer": "simple"
      }
  

```

so, i want to update or remove _"analyzer":"simple"_ from ticketId field. is it possible without recreate index or any other way?

---

<div class="post-metadata">

**Author:** ![ysunil702](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ysunil702/32/61700_2.png) [@ysunil702](https://discuss.elastic.co/u/ysunil702)\
**Post date:** [December 10, 2019, 12:33pm UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182/2 "2019-12-10T12:33:57Z")

</div>

not any reply from elastic search

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 10, 2019, 3:00pm UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182/3 "2019-12-10T15:00:31Z")

</div>

You need to recreate the index. And reindex the data.

---

<div class="post-metadata">

**Author:** ![ysunil702](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ysunil702/32/61700_2.png) [@ysunil702](https://discuss.elastic.co/u/ysunil702)\
**Post date:** [December 11, 2019, 8:48am UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182/4 "2019-12-11T08:48:25Z")

</div>

thanks @dadoonet 👍

---

<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:** [January 8, 2020, 8:48am UTC](https://discuss.elastic.co/t/can-i-update-analyzer-in-field-without-recreating-the-index/210182/5 "2020-01-08T08:48:26Z")

</div>

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