# Can indices.cache.filter.size be set dynamiclly?

**URL:** <https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079>\
**Category:** Elasticsearch\
**Created:** [January 26, 2016, 2:22am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079 "2016-01-26T02:22:03Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [January 26, 2016, 2:22am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/1 "2016-01-26T02:22:03Z")

</div>

I'd like modified the default 10% to 20%. So I'd like to ask so.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 26, 2016, 9:15am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/2 "2016-01-26T09:15:04Z")

</div>

Hi makeyang,

the setting `indices.cache.filter.size` is deprecated and you should use `indices.queries.cache.size` with 2.0 and above instead. As you can see in the docs [`indices.queries.cache.size` is static](https://www.elastic.co/guide/en/elasticsearch/reference/2.1/query-cache.html).

Daniel

---

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [January 26, 2016, 10:01am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/3 "2016-01-26T10:01:22Z")

</div>

what is the status for 1.7?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 26, 2016, 10:16am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/4 "2016-01-26T10:16:46Z")

</div>

Hi makeyang,

`indices.cache.filter.size` is a [node-level setting in 1.7](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/index-modules-cache.html) and only statically configurable.

Daniel

---

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [January 26, 2016, 10:28am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/5 "2016-01-26T10:28:35Z")

</div>

thanks.  
don't get why make it statically. it's hard to evaluate its usage and online modification is really a useful feature.

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 26, 2016, 12:46pm UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/6 "2016-01-26T12:46:00Z")

</div>

Hi,

this is a setting that you shouldn't have to modify really often. Moreover, if we make this a dynamic setting, we'd introduce additional complexity (and the likelihood of bugs increases). This and the fact that this setting is only seldom changed was probably the reason for making this a static setting in the first place.

But you're free to create a Github issue though. 🙂

Daniel

---

<div class="post-metadata">

**Author:** ![wang\_zhong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wang_zhong/32/7379_2.png) [@wang\_zhong](https://discuss.elastic.co/u/wang_zhong)\
**Post date:** [January 26, 2016, 2:57pm UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/7 "2016-01-26T14:57:30Z")

</div>

Hi, what about es1.2.1? Is the indices.cache.filter.size also a static setting? But i have set it by cluster setting, it made sense. Am i doing something wrong?

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 26, 2016, 3:35pm UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/8 "2016-01-26T15:35:04Z")

</div>

Hi,

I am not aware that this has ever been a dynamic setting. Can you paste the specific CURL command you've used to change this setting and the response you've got?

Daniel

---

<div class="post-metadata">

**Author:** ![wang\_zhong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wang_zhong/32/7379_2.png) [@wang\_zhong](https://discuss.elastic.co/u/wang_zhong)\
**Post date:** [January 26, 2016, 4:32pm UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/9 "2016-01-26T16:32:38Z")

</div>

Hi, i have got the dynamic setting in here:  
[https://www.elastic.co/guide/en/elasticsearch/reference/1.7/cluster-update-settings.html](https://www.elastic.co/guide/en/elasticsearch/reference/1.7/cluster-update-settings.html)

and i do like this, then the setting works.

curl -XPUT '[http://localhost:9200/\_cluster/settings](http://localhost:9200/_cluster/settings)' -d '{  
"transient" : {  
"indices.cache.filter.size" : "30%"  
}  
}'

---

<div class="post-metadata">

**Author:** ![makeyang](https://avatars.discourse-cdn.com/v4/letter/m/f05b48/32.png) [@makeyang](https://discuss.elastic.co/u/makeyang)\
**Post date:** [January 27, 2016, 2:44am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/10 "2016-01-27T02:44:49Z")

</div>

> [@danielmitterdorfer](#):
>
> hub issue though.

it works. thanks wang\_zhong

---

<div class="post-metadata">

**Author:** ![danielmitterdorfer](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/danielmitterdorfer/32/110510_2.png) [@danielmitterdorfer](https://discuss.elastic.co/u/danielmitterdorfer)\
**Post date:** [January 27, 2016, 6:45am UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/11 "2016-01-27T06:45:10Z")

</div>

Hi,

ah, you're right. I was mistaken regarding 1.7. This works in 1.7.3.

But just as a heads-up, if you try to update the corresponding setting `indices.queries.cache.size` with the cluster settings API in Elasticsearch 2.1.1, you'll get an acknowledge back but in the logs you'll find:

```auto
[WARN][action.admin.cluster.settings] [Boomer] ignoring transient setting [indices.queries.cache.size], not dynamically updateable

```

Daniel

---

<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 5, 2017, 11:21pm UTC](https://discuss.elastic.co/t/can-indices-cache-filter-size-be-set-dynamiclly/40079/12 "2017-07-05T23:21:13Z")

</div>


