# Elastic search ignoring refresh\_interval setting from elasticsearch.yml

**URL:** <https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856>\
**Category:** Elasticsearch\
**Created:** [July 19, 2013, 10:23am UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856 "2013-07-19T10:23:44Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [July 19, 2013, 10:23am UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/1 "2013-07-19T10:23:44Z")

</div>

Hi,

We have made an entry in elasticsearch.yml for refresh\_interval as  
_index.refresh\_interval: 1s_

But its not honouring the setting .

When I get setting to cluster to it.

curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
{  
"test" : {  
"settings" : {  
"index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
"index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
"index.number\_of\_shards" : "5",  
"index.number\_of\_replicas" : "2",  
"index.version.created" : "900199",  
}  
}  
}

But when make a rest call

curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
{"refresh\_interval" : "1s"}}'

curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
{  
"test" : {  
"settings" : {  
"index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
"index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
"index.number\_of\_shards" : "5",  
"index.number\_of\_replicas" : "2",  
"index.version.created" : "900199",  
"index.refresh\_interval" : "1s"  
}  
}  
}

Thanks,  
Arjit

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [July 20, 2013, 4:05am UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/2 "2013-07-20T04:05:28Z")

</div>

Any one ?

Thanks ,  
Arjit

On Fri, Jul 19, 2013 at 3:53 PM, Arjit Gupta [arjit292@gmail.com](mailto:arjit292@gmail.com) wrote:

> Hi,
> 
> We have made an entry in elasticsearch.yml for refresh\_interval as  
> _index.refresh\_interval: 1s_
> 
> But its not honouring the setting .
> 
> When I get setting to cluster to it.
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> }  
> }  
> }
> 
> But when make a rest call
> 
> curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
> {"refresh\_interval" : "1s"}}'
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> "index.refresh\_interval" : "1s"  
> }  
> }  
> }
> 
> Thanks,  
> Arjit
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe](https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [July 20, 2013, 8:10pm UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/3 "2013-07-20T20:10:31Z")

</div>

I may be wrong, but I'll hazard an educated guess...

Your configuration specifies the default index refresh interval for all  
indices. When your second GET request is issued, you see the defaults that  
you have explicitly configured.

When you query the specific index, you see only the explicitly configured  
settings for that specific index, but not the values that were configured  
for all indices. In other words, perhaps ES is not showing the inherited  
settings when querying a specific index's settings.

It does look confusing, and it does seem like a minor bug (perhaps).

But I would guess that ES is honoring the setting, regardless of whether or  
not it displays that setting. Just as it honors all of the built-in default  
settings that it doesn't display in all cases. At least, that's been my  
empirically determined views.

Brian

On Friday, July 19, 2013 6:23:44 AM UTC-4, Arjit Gupta wrote:

> Hi,
> 
> We have made an entry in elasticsearch.yml for refresh\_interval as  
> _index.refresh\_interval: 1s_
> 
> But its not honouring the setting .
> 
> When I get setting to cluster to it.
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> }  
> }  
> }
> 
> But when make a rest call
> 
> curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
> {"refresh\_interval" : "1s"}}'
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> "index.refresh\_interval" : "1s"  
> }  
> }  
> }
> 
> Thanks,  
> Arjit

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [July 22, 2013, 2:36am UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/4 "2013-07-22T02:36:32Z")

</div>

I am guessing ES is not honoring the setting because the index response  
time are very bad before I set index.referesh\_interval to 1 and they  
improve when the update the setting to 1s.  
I was confused thinking I might be entering the setting at the wrong place  
in configration file.

Please correct me if i am wrong.

Thanks ,  
Arjit

On Sun, Jul 21, 2013 at 1:40 AM, InquiringMind [brian.from.fl@gmail.com](mailto:brian.from.fl@gmail.com)wrote:

> I may be wrong, but I'll hazard an educated guess...
> 
> Your configuration specifies the default index refresh interval for all  
> indices. When your second GET request is issued, you see the defaults that  
> you have explicitly configured.
> 
> When you query the specific index, you see only the explicitly configured  
> settings for that specific index, but not the values that were configured  
> for all indices. In other words, perhaps ES is not showing the inherited  
> settings when querying a specific index's settings.
> 
> It does look confusing, and it does seem like a minor bug (perhaps).
> 
> But I would guess that ES is honoring the setting, regardless of whether  
> or not it displays that setting. Just as it honors all of the built-in  
> default settings that it doesn't display in all cases. At least, that's  
> been my empirically determined views.
> 
> Brian
> 
> On Friday, July 19, 2013 6:23:44 AM UTC-4, Arjit Gupta wrote:
> 
> > Hi,
> > 
> > We have made an entry in elasticsearch.yml for refresh\_interval as  
> > _index.refresh\_interval: 1s_
> > 
> > But its not honouring the setting .
> > 
> > When I get setting to cluster to it.
> > 
> > curl -XGET '[http://localhost:9200/test/\_\*\*settings?pretty=true](http://localhost:9200/test/_**settings?pretty=true)[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)  
> > '  
> > {  
> > "test" : {  
> > "settings" : {  
> > "index.analysis.analyzer.my\_\*\*analyzer.tokenizer" : "keyword",  
> > "index.analysis.analyzer.my\_\*\*analyzer.filter" : "lowercase",  
> > "index.number\_of\_shards" : "5",  
> > "index.number\_of\_replicas" : "2",  
> > "index.version.created" : "900199",  
> > }  
> > }  
> > }
> > 
> > But when make a rest call
> > 
> > curl -XPUT '[http://localhost:9200/\*/\_\*\*settings](http://localhost:9200/*/_**settings)[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)'  
> > -d '{"index" : {"refresh\_interval" : "1s"}}'
> > 
> > curl -XGET '[http://localhost:9200/test/\_\*\*settings?pretty=true](http://localhost:9200/test/_**settings?pretty=true)[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)  
> > '  
> > {  
> > "test" : {  
> > "settings" : {  
> > "index.analysis.analyzer.my\_\*\*analyzer.tokenizer" : "keyword",  
> > "index.analysis.analyzer.my\_\*\*analyzer.filter" : "lowercase",  
> > "index.number\_of\_shards" : "5",  
> > "index.number\_of\_replicas" : "2",  
> > "index.version.created" : "900199",  
> > "index.refresh\_interval" : "1s"  
> > }  
> > }  
> > }
> > 
> > Thanks,  
> > Arjit
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe](https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![brian\_yoder](https://avatars.discourse-cdn.com/v4/letter/b/f1d935/32.png) [@brian\_yoder](https://discuss.elastic.co/u/brian_yoder)\
**Post date:** [July 22, 2013, 7:22pm UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/5 "2013-07-22T19:22:26Z")

</div>

The default setting for index refresh interval is 1s.

If you experienced bad response times, my guess is a heavy bulk load  
happened at the same time as requests. In this case, I set the refresh  
interval to 2m (2 minutes) per some recommendation I read, and then set it  
back to 1s when the bulk load is done.

For normal (low volume) updates, I leave the index refresh interval alone  
(it is therefore 1s) and my updates are quick and resulting queries see  
them on the local box without noticeable delay.

But this is only my experience as a user of ES, and not that of a developer  
of ES.

Brian

On Sunday, July 21, 2013 10:36:32 PM UTC-4, Arjit Gupta wrote:

> I am guessing ES is not honoring the setting because the index response  
> time are very bad before I set index.referesh\_interval to 1 and they  
> improve when the update the setting to 1s.  
> I was confused thinking I might be entering the setting at the wrong place  
> in configration file.
> 
> Please correct me if i am wrong.
> 
> Thanks ,  
> Arjit
> 
> >

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Kartavya](https://avatars.discourse-cdn.com/v4/letter/k/65b543/32.png) [@Kartavya](https://discuss.elastic.co/u/Kartavya)\
**Post date:** [April 24, 2014, 12:27pm UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/6 "2014-04-24T12:27:12Z")

</div>

You can check your such global configurations here

curl -XGET 'localhost:9200/\_nodes?pretty=true

Thanks,  
Pulkit

On Friday, 19 July 2013 10:23:44 UTC, Arjit Gupta wrote:

> Hi,
> 
> We have made an entry in elasticsearch.yml for refresh\_interval as  
> _index.refresh\_interval: 1s_
> 
> But its not honouring the setting .
> 
> When I get setting to cluster to it.
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> }  
> }  
> }
> 
> But when make a rest call
> 
> curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
> {"refresh\_interval" : "1s"}}'
> 
> curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> {  
> "test" : {  
> "settings" : {  
> "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> "index.number\_of\_shards" : "5",  
> "index.number\_of\_replicas" : "2",  
> "index.version.created" : "900199",  
> "index.refresh\_interval" : "1s"  
> }  
> }  
> }
> 
> Thanks,  
> Arjit

--  
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/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [April 24, 2014, 12:55pm UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/7 "2014-04-24T12:55:38Z")

</div>

Hi Arjit

When you set it via the config file, it isn't included in the output of GET  
/\_settings, but is is being honoured.

That said, I much prefer using the API for these things instead of setting  
them in the config file

clint

On 24 April 2014 14:27, Kartavya [pulkitdotcom@gmail.com](mailto:pulkitdotcom@gmail.com) wrote:

> You can check your such global configurations here
> 
> curl -XGET 'localhost:9200/\_nodes?pretty=true
> 
> Thanks,  
> Pulkit
> 
> On Friday, 19 July 2013 10:23:44 UTC, Arjit Gupta wrote:
> 
> > Hi,
> > 
> > We have made an entry in elasticsearch.yml for refresh\_interval as  
> > _index.refresh\_interval: 1s_
> > 
> > But its not honouring the setting .
> > 
> > When I get setting to cluster to it.
> > 
> > curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> > {  
> > "test" : {  
> > "settings" : {  
> > "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> > "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> > "index.number\_of\_shards" : "5",  
> > "index.number\_of\_replicas" : "2",  
> > "index.version.created" : "900199",  
> > }  
> > }  
> > }
> > 
> > But when make a rest call
> > 
> > curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
> > {"refresh\_interval" : "1s"}}'
> > 
> > curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> > {  
> > "test" : {  
> > "settings" : {  
> > "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> > "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> > "index.number\_of\_shards" : "5",  
> > "index.number\_of\_replicas" : "2",  
> > "index.version.created" : "900199",  
> > "index.refresh\_interval" : "1s"  
> > }  
> > }  
> > }
> > 
> > Thanks,  
> > Arjit
> 
> --  
> 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/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Arjit\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Arjit\_Gupta](https://discuss.elastic.co/u/Arjit_Gupta)\
**Post date:** [April 24, 2014, 1:03pm UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/8 "2014-04-24T13:03:48Z")

</div>

Thanks a lot clint for the clarity on this .

Thanks ,  
Arjit

On Thu, Apr 24, 2014 at 6:25 PM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> Hi Arjit
> 
> When you set it via the config file, it isn't included in the output of  
> GET /\_settings, but is is being honoured.
> 
> That said, I much prefer using the API for these things instead of setting  
> them in the config file
> 
> clint
> 
> On 24 April 2014 14:27, Kartavya [pulkitdotcom@gmail.com](mailto:pulkitdotcom@gmail.com) wrote:
> 
> > You can check your such global configurations here
> > 
> > curl -XGET 'localhost:9200/\_nodes?pretty=true
> > 
> > Thanks,  
> > Pulkit
> > 
> > On Friday, 19 July 2013 10:23:44 UTC, Arjit Gupta wrote:
> > 
> > > Hi,
> > > 
> > > We have made an entry in elasticsearch.yml for refresh\_interval as  
> > > _index.refresh\_interval: 1s_
> > > 
> > > But its not honouring the setting .
> > > 
> > > When I get setting to cluster to it.
> > > 
> > > curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> > > {  
> > > "test" : {  
> > > "settings" : {  
> > > "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> > > "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> > > "index.number\_of\_shards" : "5",  
> > > "index.number\_of\_replicas" : "2",  
> > > "index.version.created" : "900199",  
> > > }  
> > > }  
> > > }
> > > 
> > > But when make a rest call
> > > 
> > > curl -XPUT '[http://localhost:9200/\*/\_settings](http://localhost:9200/*/_settings)' -d '{"index" :  
> > > {"refresh\_interval" : "1s"}}'
> > > 
> > > curl -XGET '[http://localhost:9200/test/\_settings?pretty=true](http://localhost:9200/test/_settings?pretty=true)'  
> > > {  
> > > "test" : {  
> > > "settings" : {  
> > > "index.analysis.analyzer.my\_analyzer.tokenizer" : "keyword",  
> > > "index.analysis.analyzer.my\_analyzer.filter" : "lowercase",  
> > > "index.number\_of\_shards" : "5",  
> > > "index.number\_of\_replicas" : "2",  
> > > "index.version.created" : "900199",  
> > > "index.refresh\_interval" : "1s"  
> > > }  
> > > }  
> > > }
> > > 
> > > Thanks,  
> > > Arjit
> > 
> > --  
> > 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/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/31fbd73e-9859-4b79-9bd4-c8a0e289955b%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe](https://groups.google.com/d/topic/elasticsearch/APbMvt9WFK4/unsubscribe).  
> To unsubscribe from this group and all its topics, 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/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com)[https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPt3XKSs-hWsmAQdBnkYkjAC6jWKmBGt-mgcoBVMj%2Bo%3DANft-g%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CADe%2BHd\_K%2BNLRTsuQM%3D0zeH%3D5DH%3D5wr8Up\_SLvr%3Dxr%3D2P1LomBQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CADe%2BHd_K%2BNLRTsuQM%3D0zeH%3D5DH%3D5wr8Up_SLvr%3Dxr%3D2P1LomBQ%40mail.gmail.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, 1:33am UTC](https://discuss.elastic.co/t/elastic-search-ignoring-refresh-interval-setting-from-elasticsearch-yml/12856/9 "2017-07-06T01:33:46Z")

</div>


