# How to modifiy settings for an existing index?

**URL:** <https://discuss.elastic.co/t/how-to-modifiy-settings-for-an-existing-index/8536>\
**Category:** Elasticsearch\
**Created:** [July 27, 2012, 9:41am UTC](https://discuss.elastic.co/t/how-to-modifiy-settings-for-an-existing-index/8536 "2012-07-27T09:41:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RudyWI](https://avatars.discourse-cdn.com/v4/letter/r/258eb7/32.png) [@RudyWI](https://discuss.elastic.co/u/RudyWI)\
**Post date:** [July 27, 2012, 9:41am UTC](https://discuss.elastic.co/t/how-to-modifiy-settings-for-an-existing-index/8536/1 "2012-07-27T09:41:51Z")

</div>

Hi,

I try to modify settings for an existing index.  
So I have closed the index and executed the following command :  
curl -X PUT 'localhost:9200/myIndex/' -d '  
{  
"settings" : {  
"index" : {  
"number\_of\_shards" : 1,  
"number\_of\_replicas" : 0,  
"analysis" : {  
"analyzer" : {  
"ta" : {  
"type" : "custom",  
"tokenizer" : "standard",  
"filter" : ["standard", "word\_delimiter", "lowercase", "synonym", "stop", "kstem"]  
}  
},  
"filter" : {  
"synonym" : {  
"type" : "synonym",  
"synonyms\_path" : "analysis/synonym.txt"  
}  
}  
}  
}  
}  
}'

But I have the error "IndexAlreadyExistsException".

So how to do ?

Best regards,

Rudy.

---

<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 6, 2017, 3:18am UTC](https://discuss.elastic.co/t/how-to-modifiy-settings-for-an-existing-index/8536/2 "2017-07-06T03:18:49Z")

</div>


