# Getting index.cache.field.\* settings

**URL:** <https://discuss.elastic.co/t/getting-index-cache-field-settings/10040>\
**Category:** Elasticsearch\
**Created:** [December 11, 2012, 2:08pm UTC](https://discuss.elastic.co/t/getting-index-cache-field-settings/10040 "2012-12-11T14:08:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [December 11, 2012, 2:08pm UTC](https://discuss.elastic.co/t/getting-index-cache-field-settings/10040/1 "2012-12-11T14:08:34Z")

</div>

Hi,

How to get current index.cache.field.type/max\_size/expire settings for an  
index? Can these properties be set via HTTP API like this:  
curl -XPUT localhost:9200/users/\_settings -d '{  
"index" : {  
"cache.field.type" : "soft",  
"cache.field.expire" : "10m"  
}  
}'  
?

Thank you  
Best regards.  
Marcin Dojwa.

--

---

<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 11, 2012, 5:21pm UTC](https://discuss.elastic.co/t/getting-index-cache-field-settings/10040/2 "2012-12-11T17:21:24Z")

</div>

AFAIK, if you do not see a property using  
[http://localhost:9200/users/\_settings](http://localhost:9200/users/_settings),  
then the index is using the default. There really should be a verbose flag.

Only certain properties can be set while the cluster is running, and they  
are set using IndexMetaData.addDynamicSettings(). From what I can see,  
those settings are not dynamic and therefore cannot be changed.

- 

Ivan

On Tue, Dec 11, 2012 at 6:08 AM, Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)wrote:

> Hi,
> 
> How to get current index.cache.field.type/max\_size/expire settings for an  
> index? Can these properties be set via HTTP API like this:  
> curl -XPUT localhost:9200/users/\_settings -d '{  
> "index" : {  
> "cache.field.type" : "soft",  
> "cache.field.expire" : "10m"  
> }  
> }'  
> ?
> 
> Thank you  
> Best regards.  
> Marcin Dojwa.
> 
> --

--

---

<div class="post-metadata">

**Author:** ![Marcin\_Dojwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marcin_dojwa/32/2307_2.png) [@Marcin\_Dojwa](https://discuss.elastic.co/u/Marcin_Dojwa)\
**Post date:** [December 12, 2012, 9:40am UTC](https://discuss.elastic.co/t/getting-index-cache-field-settings/10040/3 "2012-12-12T09:40:06Z")

</div>

As I checked these properties can be set while index is closed. They are  
presented while getting index \_settings then too.

2012/12/11 Ivan Brusic [ivan@brusic.com](mailto:ivan@brusic.com)

> AFAIK, if you do not see a property using [http://localhost:9200/users/\_settings](http://localhost:9200/users/_settings),  
> then the index is using the default. There really should be a verbose flag.
> 
> Only certain properties can be set while the cluster is running, and they  
> are set using IndexMetaData.addDynamicSettings(). From what I can see,  
> those settings are not dynamic and therefore cannot be changed.
> 
> - 
> 
> Ivan
> 
> On Tue, Dec 11, 2012 at 6:08 AM, Marcin Dojwa [m.dojwa@livechatinc.com](mailto:m.dojwa@livechatinc.com)wrote:
> 
> > Hi,
> > 
> > How to get current index.cache.field.type/max\_size/expire settings for an  
> > index? Can these properties be set via HTTP API like this:  
> > curl -XPUT localhost:9200/users/\_settings -d '{  
> > "index" : {  
> > "cache.field.type" : "soft",  
> > "cache.field.expire" : "10m"  
> > }  
> > }'  
> > ?
> > 
> > Thank you  
> > Best regards.  
> > Marcin Dojwa.
> > 
> > --
> 
> --

--

---

<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:00am UTC](https://discuss.elastic.co/t/getting-index-cache-field-settings/10040/4 "2017-07-06T03:00:10Z")

</div>


