# Can I issue an explicit commit?

**URL:** https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655
**Category:** Elasticsearch
**Created:** [July 28, 2016, 4:25pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655 "2016-07-28T16:25:18Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![ted919](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@ted919](https://discuss.elastic.co/u/ted919)
#### Post date: [July 28, 2016, 4:25pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655/1 "2016-07-28T16:25:18Z")

</div>

I read that Elasticsearch is NRT with maybe a second delay after indexing. Is there a way to issue an explicit commit? My use case is that I'm running thousands of saved searches (batch job) that will update documents by tagging them with a particular field value. The searches have a priority order - the outcome of one search will effect the results of the next. Each search may update any number of docs (0 - 1M+). If I have to wait a second between each search that creates hours of wait time.

Thanks!

---

<div class="post-metadata">

### Author: ![DiscussBuster](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/discussbuster/32/11042_2.png) [@DiscussBuster](https://discuss.elastic.co/u/DiscussBuster)
#### Post date: [July 28, 2016, 11:46pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655/2 "2016-07-28T23:46:45Z")

</div>

The feature you seek, with relevant cautions, [is documented here](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html#index-refresh)

---

<div class="post-metadata">

### Author: ![ted919](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@ted919](https://discuss.elastic.co/u/ted919)
#### Post date: [July 29, 2016, 2:37pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655/3 "2016-07-29T14:37:12Z")

</div>

Refresh - I see that now. Does this option cause a commit with each individual update, or can it be called after a batch operation? When loading or updating data I would do it in large batches, 1000 or so at a time. Can it be used without an accompanying doc update?

---

<div class="post-metadata">

### Author: ![ywelsch](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ywelsch/32/7751_2.png) [@ywelsch](https://discuss.elastic.co/u/ywelsch)
#### Post date: [July 29, 2016, 2:40pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655/4 "2016-07-29T14:40:15Z")

</div>

yes, you can do it on a bulk request (so that it is only done once all documents in the batch have been inserted). There is also a dedicated refresh command.

---

<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 5, 2017, 10:31pm UTC](https://discuss.elastic.co/t/can-i-issue-an-explicit-commit/56655/5 "2017-07-05T22:31:43Z")

</div>


