# How to handle "type" while upgrading from es2.x to es6.x

**URL:** <https://discuss.elastic.co/t/how-to-handle-type-while-upgrading-from-es2-x-to-es6-x/189007>\
**Category:** Elasticsearch\
**Created:** [July 5, 2019, 5:38am UTC](https://discuss.elastic.co/t/how-to-handle-type-while-upgrading-from-es2-x-to-es6-x/189007 "2019-07-05T05:38:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pathri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pathri/32/54484_2.png) [@pathri](https://discuss.elastic.co/u/pathri)\
**Post date:** [July 5, 2019, 5:38am UTC](https://discuss.elastic.co/t/how-to-handle-type-while-upgrading-from-es2-x-to-es6-x/189007/1 "2019-07-05T05:38:06Z")

</div>

since es deprecated "type" in it's es recent versions,  
how can i move indexes which are created in es2.x version to recent es versions?

---

<div class="post-metadata">

**Author:** ![TimV](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/timv/32/13162_2.png) [@TimV](https://discuss.elastic.co/u/TimV)\
**Post date:** [July 5, 2019, 5:46am UTC](https://discuss.elastic.co/t/how-to-handle-type-while-upgrading-from-es2-x-to-es6-x/189007/2 "2019-07-05T05:46:11Z")

</div>

[https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#\_alternatives\_to\_mapping\_types](https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html#_alternatives_to_mapping_types)

---

<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:** [August 2, 2019, 5:46am UTC](https://discuss.elastic.co/t/how-to-handle-type-while-upgrading-from-es2-x-to-es6-x/189007/3 "2019-08-02T05:46:13Z")

</div>

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