# How to merge indices?

**URL:** https://discuss.elastic.co/t/how-to-merge-indices/8728
**Category:** Elasticsearch
**Created:** [August 13, 2012, 9:05am UTC](https://discuss.elastic.co/t/how-to-merge-indices/8728 "2012-08-13T09:05:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Pi\_2](https://avatars.discourse-cdn.com/v4/letter/s/ecc23a/32.png) [@Stefan\_Pi\_2](https://discuss.elastic.co/u/Stefan_Pi_2)
#### Post date: [August 13, 2012, 9:05am UTC](https://discuss.elastic.co/t/how-to-merge-indices/8728/1 "2012-08-13T09:05:15Z")

</div>

Hi everybody,

I'm using ES 0.19.0 and I would like to know if there's an option to merge  
two or more indices. And if there's no option, what is the  
common/easiest/fastest way to to this? I guess I need to move all documents  
from the first index to the second, which basically means re-indexing all  
documents of the first index into the second? Or are there any more  
resource-friendly options?

Any help would be much appreciated!

Thanks,  
Stefan

--

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [August 13, 2012, 10:24am UTC](https://discuss.elastic.co/t/how-to-merge-indices/8728/2 "2012-08-13T10:24:12Z")

</div>

There isn't a built in mechanism to do that, and yes, reindexing from one index to the other is the faster way…

On Aug 13, 2012, at 11:05 AM, Stefan Pi [stefan.pietschmann@social-meme.com](mailto:stefan.pietschmann@social-meme.com) wrote:

> Hi everybody,
> 
> I'm using ES 0.19.0 and I would like to know if there's an option to merge two or more indices. And if there's no option, what is the common/easiest/fastest way to to this? I guess I need to move all documents from the first index to the second, which basically means re-indexing all documents of the first index into the second? Or are there any more resource-friendly options?
> 
> Any help would be much appreciated!
> 
> Thanks,  
> Stefan
> 
> --

--

---

<div class="post-metadata">

### Author: ![Stefan\_Pi\_3](https://avatars.discourse-cdn.com/v4/letter/s/77aa72/32.png) [@Stefan\_Pi\_3](https://discuss.elastic.co/u/Stefan_Pi_3)
#### Post date: [August 20, 2012, 9:07am UTC](https://discuss.elastic.co/t/how-to-merge-indices/8728/3 "2012-08-20T09:07:40Z")

</div>

Thank you, kimchy!

Am Montag, 13. August 2012 12:24:12 UTC+2 schrieb kimchy:

> There isn't a built in mechanism to do that, and yes, reindexing from one  
> index to the other is the faster way…

--

---

<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, 3:15am UTC](https://discuss.elastic.co/t/how-to-merge-indices/8728/4 "2017-07-06T03:15:50Z")

</div>


