# Changing Non Dynamic setting of allready created index

**URL:** <https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574>\
**Category:** Elasticsearch\
**Created:** [May 29, 2015, 7:33pm UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574 "2015-05-29T19:33:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asthanaamish](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@asthanaamish](https://discuss.elastic.co/u/asthanaamish)\
**Post date:** [May 29, 2015, 7:33pm UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574/1 "2015-05-29T19:33:13Z")

</div>

Hi  
We have an index with setting like :

curl -XGET '[http://localhost:9200/](http://localhost:9200/)/\_settings' -d '{  
...  
"analysis" : {  
"filter" : {  
"truncate\_filter" : {  
"type" : "truncate",  
"length" : "7000"  
},  
....  
}

Now we want to change the length of the truncate filter setting without recreating the index.

When we tried to change the setting it gives error:  
error": "ElasticsearchIllegalArgumentException[Can't update non dynamic settings.....

This one can understand.

Then we went ahead and did the following:  
a) Close the index  
b) Again changed the setting to something smaller say 5000. It went through fine.  
c) Open the index and checked the setting. It shows the new setting as 5000 and as far as we can see it works fine.

Question  
: What exactly happened here. I am assuming it has not changed anything  
for the existing data, but is using this setting only for new data. Is  
this a bug or intended behaviour or just a workaround which we should  
not use.

regards and thanks  
amish

---

<div class="post-metadata">

**Author:** ![Jason\_Wee](https://avatars.discourse-cdn.com/v4/letter/j/7ea924/32.png) [@Jason\_Wee](https://discuss.elastic.co/u/Jason_Wee)\
**Post date:** [May 30, 2015, 8:56am UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574/2 "2015-05-30T08:56:29Z")

</div>

it seem like what you did is inline with the official documentation. [https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#update-settings-analysis](https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html#update-settings-analysis)

---

<div class="post-metadata">

**Author:** ![asthanaamish](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@asthanaamish](https://discuss.elastic.co/u/asthanaamish)\
**Post date:** [May 30, 2015, 2:27pm UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574/3 "2015-05-30T14:27:37Z")

</div>

HI Jason  
Thanks.  
That is for "adding" a new analyzer to the index. This is tinkering with an  
existing analyzer.  
So just wanted confirmation that this is officially supported and not a bug.

More importantly what happen in both the cases to the existing data? Does  
it get reanalyzed when the index is open or is the index in inconsistent  
state.  
regards and thanks  
amish

---

<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, 12:10am UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/1574/4 "2017-07-06T00:10:37Z")

</div>


