# How to join two elastic search indexs

**URL:** <https://discuss.elastic.co/t/how-to-join-two-elastic-search-indexs/9386>\
**Category:** Elasticsearch\
**Created:** [October 16, 2012, 7:11pm UTC](https://discuss.elastic.co/t/how-to-join-two-elastic-search-indexs/9386 "2012-10-16T19:11:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyanshu\_das](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@divyanshu\_das](https://discuss.elastic.co/u/divyanshu_das)\
**Post date:** [October 16, 2012, 7:11pm UTC](https://discuss.elastic.co/t/how-to-join-two-elastic-search-indexs/9386/1 "2012-10-16T19:11:14Z")

</div>

I have two elasticsearch servers running on two machines which have X and Y  
no of indexes respectively. I need to join both of them, so that my new  
machine has X+Y no of index without any loss of data.

Will merging the data/ folder from both the instances do the trick?

--

---

<div class="post-metadata">

**Author:** ![Jerome\_Gagnon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jerome_gagnon/32/2178_2.png) [@Jerome\_Gagnon](https://discuss.elastic.co/u/Jerome_Gagnon)\
**Post date:** [October 16, 2012, 7:57pm UTC](https://discuss.elastic.co/t/how-to-join-two-elastic-search-indexs/9386/2 "2012-10-16T19:57:37Z")

</div>

I would create an Alias and play with replication/allocation to put all in  
1 node... then you will still have 2 indices but all of your data will  
still be under 1 name on 1 node.

On Tuesday, October 16, 2012 3:11:14 PM UTC-4, divyanshu das wrote:

> I have two elasticsearch servers running on two machines which have X and  
> Y no of indexes respectively. I need to join both of them, so that my new  
> machine has X+Y no of index without any loss of data.
> 
> Will merging the data/ folder from both the instances do the trick?

--

---

<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:08am UTC](https://discuss.elastic.co/t/how-to-join-two-elastic-search-indexs/9386/3 "2017-07-06T03:08:25Z")

</div>

Closed on July 6, 2017, 3:08am UTC


