# Reindex from Remote and forgetting ES 2.1 type

**URL:** <https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841>\
**Category:** Elasticsearch\
**Created:** [October 17, 2018, 12:56pm UTC](https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841 "2018-10-17T12:56:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![boeledi01](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@boeledi01](https://discuss.elastic.co/u/boeledi01)\
**Post date:** [October 17, 2018, 12:56pm UTC](https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841/1 "2018-10-17T12:56:27Z")

</div>

Hi,

I have an ES2.1 index **with a type** and I want to migrate to ES6.x ( **without a type but the \_doc** ).  
How can I proceeed as I want to get rid of the ES2.1 type ?

At the moment, I am doing:

> POST \_reindex { "source"; { "remote": "...", "index": "myES2Index"}, "dest": "myES6Index"}}

In order to make it work I had, in the mapping of the ES6 index, reference the ES2.1 type, rather than the "\_doc"...

Many thanks for your help

---

<div class="post-metadata">

**Author:** ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)\
**Post date:** [October 17, 2018, 1:17pm UTC](https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841/2 "2018-10-17T13:17:38Z")

</div>

I think [this post](https://discuss.elastic.co/t/dec-15th-2017-en-elasticsearch-going-from-multiple-types-to-one-type-with-the-reindex-api/111315) will answer your questions.

---

<div class="post-metadata">

**Author:** ![boeledi01](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@boeledi01](https://discuss.elastic.co/u/boeledi01)\
**Post date:** [October 17, 2018, 2:20pm UTC](https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841/3 "2018-10-17T14:20:47Z")

</div>

Thank you so much. It works.

---

<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 14, 2018, 2:28pm UTC](https://discuss.elastic.co/t/reindex-from-remote-and-forgetting-es-2-1-type/152841/4 "2018-11-14T14:28:26Z")

</div>

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