# Index migration from a 1.x cluster to a 2.x using Nest

**URL:** <https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842>\
**Category:** Elasticsearch\
**Created:** [January 2, 2018, 9:50pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842 "2018-01-02T21:50:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![NewHos1](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@NewHos1](https://discuss.elastic.co/u/NewHos1)\
**Post date:** [January 2, 2018, 9:50pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/1 "2018-01-02T21:50:57Z")

</div>

Hello,  
I'm working on a C# migration app who will be used to export documents from a 1.7.3 Elasticsearch cluster to a 2.4.2.  
While reading Nest documentation, it appear that 2 versions of Nest will be used to be able to discuss with each cluster (Nest 1.x for ES 1.7.3 and Nest 2.x for ES 2.4.2). I don't know how to deal with 2 versions of nest.  
Is there a better way to achieve this using c#?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 7, 2018, 4:33pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/2 "2018-01-07T16:33:55Z")

</div>

Is there any special need to be in C#? Why don't you simply use Logstash?

---

<div class="post-metadata">

**Author:** ![NewHos1](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@NewHos1](https://discuss.elastic.co/u/NewHos1)\
**Post date:** [January 8, 2018, 2:18pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/3 "2018-01-08T14:18:50Z")

</div>

I don't know if it's possible with Logstash but this app will be used several times to export documents with a boolean filter (date range + field value) and i'll need to make it simple for other users (console app).

---

<div class="post-metadata">

**Author:** ![NewHos1](https://avatars.discourse-cdn.com/v4/letter/n/ad7895/32.png) [@NewHos1](https://discuss.elastic.co/u/NewHos1)\
**Post date:** [January 17, 2018, 10:00pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/4 "2018-01-17T22:00:25Z")

</div>

I use Logstash with my C# application to export documents.  
My application edit the .conf with user input parameters (i.e rewrite the file with query and index parameters) and run it using the logstash command.

---

<div class="post-metadata">

**Author:** ![thiago](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/thiago/32/32096_2.png) [@thiago](https://discuss.elastic.co/u/thiago)\
**Post date:** [January 17, 2018, 10:27pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/5 "2018-01-17T22:27:03Z")

</div>

That seems to be a good solution!

---

<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:** [February 14, 2018, 10:27pm UTC](https://discuss.elastic.co/t/index-migration-from-a-1-x-cluster-to-a-2-x-using-nest/113842/6 "2018-02-14T22:27:13Z")

</div>

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