# Merging of indices from two elasticsearch environments

**URL:** https://discuss.elastic.co/t/merging-of-indices-from-two-elasticsearch-environments/104898
**Category:** Elasticsearch
**Created:** [October 23, 2017, 12:55pm UTC](https://discuss.elastic.co/t/merging-of-indices-from-two-elasticsearch-environments/104898 "2017-10-23T12:55:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mruthyu](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@mruthyu](https://discuss.elastic.co/u/mruthyu)
#### Post date: [October 23, 2017, 12:55pm UTC](https://discuss.elastic.co/t/merging-of-indices-from-two-elasticsearch-environments/104898/1 "2017-10-23T12:55:34Z")

</div>

Is it possible to merge the indices from two environments with different versions of elasticsearch (5.4.0 and 5.4.3) .

---

<div class="post-metadata">

### Author: ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)
#### Post date: [October 23, 2017, 12:58pm UTC](https://discuss.elastic.co/t/merging-of-indices-from-two-elasticsearch-environments/104898/2 "2017-10-23T12:58:43Z")

</div>

you could use reindex from remote from the first cluster and then run another reindex from remote from the second cluster. However that of course means, that last write wins and overwrites previously existing documents (or does not write by itself, depending on configuration).

Anything more advanced needs to be developed by yourself, i.e. merging half the fields from one side and the other from the second side.

---

<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: [November 20, 2017, 12:58pm UTC](https://discuss.elastic.co/t/merging-of-indices-from-two-elasticsearch-environments/104898/3 "2017-11-20T12:58:48Z")

</div>

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