# Index.refresh\_interval=-1 will stop updating index forever

**URL:** <https://discuss.elastic.co/t/index-refresh-interval-1-will-stop-updating-index-forever/182831>\
**Category:** Elasticsearch\
**Created:** [May 27, 2019, 4:10am UTC](https://discuss.elastic.co/t/index-refresh-interval-1-will-stop-updating-index-forever/182831 "2019-05-27T04:10:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jehutywong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jehutywong/32/50527_2.png) [@Jehutywong](https://discuss.elastic.co/u/Jehutywong)\
**Post date:** [May 27, 2019, 4:10am UTC](https://discuss.elastic.co/t/index-refresh-interval-1-will-stop-updating-index-forever/182831/1 "2019-05-27T04:10:39Z")

</div>

In my environment, i have an index template set to index.refresh\_interval: "-1". After i upgraded to ES 7.0, indexes associated with this template will return 0 hit on querying, even if those indexes have been created for days (up to 5 days) and contain non-zero documents. sample response:  
{  
"took" : 51,  
"timed\_out" : false,  
"num\_reduce\_phases" : 3,  
"\_shards" : {  
"total" : 1197,  
"successful" : 1197,  
"skipped" : 1195,  
"failed" : 0  
},  
"\_clusters" : {  
"total" : 2,  
"successful" : 2,  
"skipped" : 0  
},  
"hits" : {  
"total" : {  
"value" : 0,  
"relation" : "eq"  
},  
"max\_score" : null,  
"hits" :   
}  
}

As soon as I updated their config to index.refresh\_interval=60s. query back to normal.

In previous version, i think index.refresh\_interval=-1 will only delay refresh, but won't longer than 1 day I guess. Should this be a breaking change in ES 7.0 ?

---

<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:** [June 24, 2019, 4:10am UTC](https://discuss.elastic.co/t/index-refresh-interval-1-will-stop-updating-index-forever/182831/2 "2019-06-24T04:10:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
