# Remove index settings

**URL:** <https://discuss.elastic.co/t/remove-index-settings/10106>\
**Category:** Elasticsearch\
**Created:** [December 18, 2012, 3:07pm UTC](https://discuss.elastic.co/t/remove-index-settings/10106 "2012-12-18T15:07:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerome\_Gagnon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerome_gagnon/32/2178_2.png) [@Jerome\_Gagnon](https://discuss.elastic.co/u/Jerome_Gagnon)\
**Post date:** [December 18, 2012, 3:07pm UTC](https://discuss.elastic.co/t/remove-index-settings/10106/1 "2012-12-18T15:07:47Z")

</div>

How does someone remove index setting ? Because i put  
"index.cache.filter.type" : "soft" and I have classNotfound exception :  
soft when trying the reopen the index...

first is it normal ? and then how do i remove this setting from my index ?

--

---

<div class="post-metadata">

**Author:** ![Jerome\_Gagnon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerome_gagnon/32/2178_2.png) [@Jerome\_Gagnon](https://discuss.elastic.co/u/Jerome_Gagnon)\
**Post date:** [December 18, 2012, 3:21pm UTC](https://discuss.elastic.co/t/remove-index-settings/10106/2 "2012-12-18T15:21:25Z")

</div>

I am also trying to put max\_size to -1 (not set) and I get; Caused by:  
java.lang.IllegalArgumentException: maximum size must not be negative

On Tuesday, December 18, 2012 10:07:47 AM UTC-5, Jérôme Gagnon wrote:

> How does someone remove index setting ? Because i put  
> "index.cache.filter.type" : "soft" and I have classNotfound exception :  
> soft when trying the reopen the index...
> 
> first is it normal ? and then how do i remove this setting from my index ?

--

---

<div class="post-metadata">

**Author:** ![Jerome\_Gagnon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerome_gagnon/32/2178_2.png) [@Jerome\_Gagnon](https://discuss.elastic.co/u/Jerome_Gagnon)\
**Post date:** [December 18, 2012, 3:59pm UTC](https://discuss.elastic.co/t/remove-index-settings/10106/3 "2012-12-18T15:59:22Z")

</div>

Ok I figured out that in the document cache for filter is saying soft, weak  
or resident but in reality there is two type; none or weighted... updated  
that. But still cannot delete index setting as I wanted...

On Tuesday, December 18, 2012 10:07:47 AM UTC-5, Jérôme Gagnon wrote:

> How does someone remove index setting ? Because i put  
> "index.cache.filter.type" : "soft" and I have classNotfound exception :  
> soft when trying the reopen the index...
> 
> first is it normal ? and then how do i remove this setting from my index ?

--

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [December 18, 2012, 5:09pm UTC](https://discuss.elastic.co/t/remove-index-settings/10106/4 "2012-12-18T17:09:40Z")

</div>

Only dynamic settings can be modified on an index. Only properties defined  
in IndexMetaData.dynamicSettings can be updated. They should work on closed  
indices, but I never had any luck.

Also, setting the max\_size to -1 will not work since it is a limitation of  
Guava, the caching library used. IIRC, setting it to 0 will remove it  
completely.

--  
Ivan

On Tue, Dec 18, 2012 at 7:59 AM, Jérôme Gagnon [jerome.gagnon.1@gmail.com](mailto:jerome.gagnon.1@gmail.com)wrote:

> Ok I figured out that in the document cache for filter is saying soft,  
> weak or resident but in reality there is two type; none or weighted...  
> updated that. But still cannot delete index setting as I wanted...
> 
> On Tuesday, December 18, 2012 10:07:47 AM UTC-5, Jérôme Gagnon wrote:
> 
> > How does someone remove index setting ? Because i put  
> > "index.cache.filter.type" : "soft" and I have classNotfound exception :  
> > soft when trying the reopen the index...
> > 
> > first is it normal ? and then how do i remove this setting from my 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:** [July 6, 2017, 2:59am UTC](https://discuss.elastic.co/t/remove-index-settings/10106/5 "2017-07-06T02:59:27Z")

</div>


