# Merge Indices together

**URL:** <https://discuss.elastic.co/t/merge-indices-together/69632>\
**Category:** Elasticsearch\
**Created:** [December 21, 2016, 3:38am UTC](https://discuss.elastic.co/t/merge-indices-together/69632 "2016-12-21T03:38:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheruvian](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cheruvian](https://discuss.elastic.co/u/cheruvian)\
**Post date:** [December 21, 2016, 3:38am UTC](https://discuss.elastic.co/t/merge-indices-together/69632/1 "2016-12-21T03:38:29Z")

</div>

Not certain of the feasibility but wanted to open up the discussion since it seems like copying an entire shard from on index to another seems like it should be doable.

Again unsure of actual implementation but I would think it may be able to leverage the same mechanism as the shrink API?

---

<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:** [December 21, 2016, 6:21am UTC](https://discuss.elastic.co/t/merge-indices-together/69632/2 "2016-12-21T06:21:47Z")

</div>

You need to reindex one into the other.

---

<div class="post-metadata">

**Author:** ![cheruvian](https://avatars.discourse-cdn.com/v4/letter/c/48db29/32.png) [@cheruvian](https://discuss.elastic.co/u/cheruvian)\
**Post date:** [December 26, 2016, 6:31pm UTC](https://discuss.elastic.co/t/merge-indices-together/69632/3 "2016-12-26T18:31:23Z")

</div>

I understand that is the current solution, but it is expensive and time consuming to do so, not to mention it can affect "live" index rate into the rest of the cluster.

I guess I'm trying to gain a deeper understanding of Elasticsearch and why this is NOT possible for indices but IS possible for shards.

---

<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:** [December 26, 2016, 10:11pm UTC](https://discuss.elastic.co/t/merge-indices-together/69632/4 "2016-12-26T22:11:56Z")

</div>

Different mappings would be the one immediate thing, because that implies different inverted index structures, docvalues etc etc/

---

<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:** [January 23, 2017, 10:12pm UTC](https://discuss.elastic.co/t/merge-indices-together/69632/5 "2017-01-23T22:12:06Z")

</div>

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