# Index\_already\_exists\_exception while updating analyzer setting of existing index

**URL:** <https://discuss.elastic.co/t/index-already-exists-exception-while-updating-analyzer-setting-of-existing-index/197517>\
**Category:** Elasticsearch\
**Created:** [August 30, 2019, 12:28pm UTC](https://discuss.elastic.co/t/index-already-exists-exception-while-updating-analyzer-setting-of-existing-index/197517 "2019-08-30T12:28:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahesh\_Lawand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mahesh_lawand/32/53370_2.png) [@Mahesh\_Lawand](https://discuss.elastic.co/u/Mahesh_Lawand)\
**Post date:** [August 30, 2019, 12:28pm UTC](https://discuss.elastic.co/t/index-already-exists-exception-while-updating-analyzer-setting-of-existing-index/197517/1 "2019-08-30T12:28:27Z")

</div>

I am trying to update analyzer of existing index.  
For that i have followed following steps -  
1.Close index  
curl -X POST "[http://server/index\_name/\_close](http://server/index_name/_close)"

1. Update setting:  
curl -XPUT '[http://server/index\_name](http://server/index_name)' -d '{  
"settings" : {  
"analysis": {  
"analyzer": {  
"danish": {  
"type": "danish"  
}  
}  
}  
}  
}'

But its throwing error  
{"error":{"root\_cause":[{"type":"index\_already\_exists\_exception","reason":"already exists","index":"index\_name"}],"type":"index\_already\_exists\_exception","reason":"already exists","index":"index\_name"},"status":400}

How to update analyzer setting of existing index?

---

<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:** [September 27, 2019, 12:28pm UTC](https://discuss.elastic.co/t/index-already-exists-exception-while-updating-analyzer-setting-of-existing-index/197517/2 "2019-09-27T12:28:50Z")

</div>

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