# Explicit refresh with bulk request

**URL:** https://discuss.elastic.co/t/explicit-refresh-with-bulk-request/22741
**Category:** Elasticsearch
**Created:** [March 18, 2015, 4:21pm UTC](https://discuss.elastic.co/t/explicit-refresh-with-bulk-request/22741 "2015-03-18T16:21:11Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![11181](https://avatars.discourse-cdn.com/v4/letter/1/34f0e0/32.png) [@11181](https://discuss.elastic.co/u/11181)
#### Post date: [March 18, 2015, 4:21pm UTC](https://discuss.elastic.co/t/explicit-refresh-with-bulk-request/22741/1 "2015-03-18T16:21:11Z")

</div>

I insert documents using bulk request. If I set refresh interval to 60 seconds like this  
"settings":{  
"index.refresh\_interval":"10"  
},

but at the same time I will do explicit refresh every 10 seconds using cron like this  
client.admin().indices().refresh(new RefreshRequest("elasticsearch")).actionGet();

Will elastic do auto refresh every 60 seconds? The question is about from what point of time elastic will count these 60 seconds.

--  
Александр Свиридов

--  
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/1426695671.15906000%40f334.i.mail.ru](https://groups.google.com/d/msgid/elasticsearch/1426695671.15906000%40f334.i.mail.ru).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [March 18, 2015, 4:50pm UTC](https://discuss.elastic.co/t/explicit-refresh-with-bulk-request/22741/2 "2015-03-18T16:50:54Z")

</div>

It uses an internal timer, so you will get refreshes during both the 60s  
for the ES setting (even though you have 10 there) and every time you call  
it as well.

It's not really worth doing both though.

On 18 March 2015 at 09:21, Александр Свиридов [ooo\_saturn7@mail.ru](mailto:ooo_saturn7@mail.ru) wrote:

> I insert documents using bulk request. If I set refresh interval to 60  
> seconds like this  
> "settings":{  
> "index.refresh\_interval":"10"  
> },
> 
> but at the same time I will do explicit refresh every 10 seconds using  
> cron like this  
> client.admin().indices().refresh(new  
> RefreshRequest("elasticsearch")).actionGet();
> 
> Will elastic do auto refresh every 60 seconds? The question is about from  
> what point of time elastic will count these 60 seconds.
> 
> --  
> Александр Свиридов
> 
> --  
> 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/1426695671.15906000%40f334.i.mail.ru](https://groups.google.com/d/msgid/elasticsearch/1426695671.15906000%40f334.i.mail.ru)  
> [https://groups.google.com/d/msgid/elasticsearch/1426695671.15906000%40f334.i.mail.ru?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/1426695671.15906000%40f334.i.mail.ru?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/CAEYi1X9TV%3DgZDC7Jk2GDfEnd3XnSO\_qjLDUyPcCJT-oehQGh8w%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9TV%3DgZDC7Jk2GDfEnd3XnSO_qjLDUyPcCJT-oehQGh8w%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, 12:25am UTC](https://discuss.elastic.co/t/explicit-refresh-with-bulk-request/22741/3 "2017-07-06T00:25:50Z")

</div>


