# Is \_reindex api an online aciton or not

**URL:** https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676
**Category:** Elasticsearch
**Created:** [February 19, 2022, 11:28pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676 "2022-02-19T23:28:57Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)
#### Post date: [February 19, 2022, 11:28pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/1 "2022-02-19T23:28:57Z")

</div>

Hi

Elastic 7.16.3

I was curious, is \_reindex api an online action or not..?  
Like, does it take any read or write locks on source index or not.

Regards  
Raul

---

<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: [February 20, 2022, 6:25am UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/2 "2022-02-20T06:25:02Z")

</div>

No, it does not lock anything.

---

<div class="post-metadata">

### Author: ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)
#### Post date: [February 20, 2022, 11:34am UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/3 "2022-02-20T11:34:36Z")

</div>

What if during the reindex process, several documents are indexed in the source index.  
Does these new documents also find their way to new index..?

Raul

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [February 20, 2022, 1:56pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/4 "2022-02-20T13:56:37Z")

</div>

No, any changes after the reindex has started will not be captured as it works off a point in time snapshot.

---

<div class="post-metadata">

### Author: ![raulk89](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@raulk89](https://discuss.elastic.co/u/raulk89)
#### Post date: [February 20, 2022, 2:52pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/5 "2022-02-20T14:52:16Z")

</div>

Ok, but what are my options of how can I index these several documents that have been added to source index after the reindex has started.

Regards  
Raul

---

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [February 20, 2022, 4:09pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/6 "2022-02-20T16:09:22Z")

</div>

You will need to trigger another reindex.

The documents already indexed by the previous reindex will be updated, regardless of any change or note, and the new documents will be written into the index.

---

<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: [March 20, 2022, 4:10pm UTC](https://discuss.elastic.co/t/is-reindex-api-an-online-aciton-or-not/297676/7 "2022-03-20T16:10:10Z")

</div>

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