# Changing NON Dynamic setting of allready created index

**URL:** <https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/23725>\
**Category:** Elasticsearch\
**Created:** [May 29, 2015, 5:50pm UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/23725 "2015-05-29T17:50:57Z")\
**Posts on this page:** 2\
**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, 5:50pm UTC](https://discuss.elastic.co/t/changing-non-dynamic-setting-of-allready-created-index/23725/1 "2015-05-29T17:50:57Z")

</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

## -- Please update your bookmarks! We have moved to [https://discuss.elastic.co/](https://discuss.elastic.co/)

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/7a8761ff-de25-40cd-8cac-5e32a35ee158%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/7a8761ff-de25-40cd-8cac-5e32a35ee158%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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/23725/2 "2017-07-06T00:10:46Z")

</div>


