# How to change analyzer

**URL:** <https://discuss.elastic.co/t/how-to-change-analyzer/41476>\
**Category:** Elasticsearch\
**Created:** [February 11, 2016, 11:36am UTC](https://discuss.elastic.co/t/how-to-change-analyzer/41476 "2016-02-11T11:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![enp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/enp/32/3825_2.png) [@enp](https://discuss.elastic.co/u/enp)\
**Post date:** [February 11, 2016, 11:36am UTC](https://discuss.elastic.co/t/how-to-change-analyzer/41476/1 "2016-02-11T11:36:39Z")

</div>

I tried to change analyzer for field in existing index:

> PUT /system/events/\_mapping  
> {  
> "properties": {  
> "message": {  
> "type": "string",  
> "analyzer": "simple"  
> }  
> }  
> }

The result is:

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "illegal\_argument\_exception",  
> "reason": "Mapper for [message] conflicts with existing mapping in other types:\n[mapper [message] has different [analyzer]]"  
> }  
> ],  
> "type": "illegal\_argument\_exception",  
> "reason": "Mapper for [message] conflicts with existing mapping in other types:\n[mapper [message] has different [analyzer]]"  
> },  
> "status": 400  
> }

What is wrong and how to change it?

---

<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:** [February 11, 2016, 12:20pm UTC](https://discuss.elastic.co/t/how-to-change-analyzer/41476/2 "2016-02-11T12:20:17Z")

</div>

You can't. You have to create a new mapping

---

<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:** [July 5, 2017, 11:17pm UTC](https://discuss.elastic.co/t/how-to-change-analyzer/41476/3 "2017-07-05T23:17:13Z")

</div>


