# ElasticSearch refresh\_interval

**URL:** <https://discuss.elastic.co/t/elasticsearch-refresh-interval/18978>\
**Category:** Elasticsearch\
**Created:** [July 30, 2014, 2:03pm UTC](https://discuss.elastic.co/t/elasticsearch-refresh-interval/18978 "2014-07-30T14:03:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sumit\_gupta\_sgt](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sumit\_gupta\_sgt](https://discuss.elastic.co/u/sumit_gupta_sgt)\
**Post date:** [July 30, 2014, 2:03pm UTC](https://discuss.elastic.co/t/elasticsearch-refresh-interval/18978/1 "2014-07-30T14:03:46Z")

</div>

Hi,

I am running doing bulk indexing on my index.At the same index i doing two Aggregation query in every 30 Sec.But i found hits are not coming proper.So do i need to put refresh\_interval on my index or any other clue.(I am accepting hits should be same every time because some time it is coming proper).

Query Response:

"took" : 5,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 20,  
"successful" : 20,  
"failed" : 0  
},  
"hits" : {  
"total" : 8270,  
"max\_score" : 0.0,  
"hits" : []  
},  
"aggregations" : {  
"TermRCAgg" : {  
"buckets" : [ {  
"key" : 0,  
"doc\_count" : 7267  
}, {  
"key" : 3,  
"doc\_count" : 913  
}, {  
"key" : 4,  
"doc\_count" : 90  
} ]  
}  
}  
}

"took" : 6,  
"timed\_out" : false,  
"\_shards" : {  
"total" : 20,  
"successful" : 20,  
"failed" : 0  
},  
"hits" : {  
"total" : 8272,  
"max\_score" : 0.0,  
"hits" : []  
},  
"aggregations" : {  
"DiagAgg" : {  
"buckets" : [ {  
"key" : 16,  
"doc\_count" : 7380  
}, {  
"key" : 19,  
"doc\_count" : 206  
}, {  
"key" : 31,  
"doc\_count" : 199  
}, {  
"key" : 41,  
"doc\_count" : 117  
}, {  
"key" : 115,  
"doc\_count" : 114  
}, {  
"key" : 113,  
"doc\_count" : 84  
}, {  
"key" : 114,  
"doc\_count" : 84  
}, {  
"key" : 17,  
"doc\_count" : 47  
}, {  
"key" : 112,  
"doc\_count" : 22  
}, {  
"key" : 21,  
"doc\_count" : 14  
} ]  
}  
}  
}

Thanks,  
Sumit Gupta

---

<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:12am UTC](https://discuss.elastic.co/t/elasticsearch-refresh-interval/18978/2 "2017-07-06T01:12:14Z")

</div>


