# Line check for index migration, upgrade to 6.x from 5.x, removal of types from index

**URL:** <https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548>\
**Category:** Elasticsearch\
**Created:** [March 8, 2019, 7:21pm UTC](https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548 "2019-03-08T19:21:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jbrar](https://avatars.discourse-cdn.com/v4/letter/j/77aa72/32.png) [@Jbrar](https://discuss.elastic.co/u/Jbrar)\
**Post date:** [March 8, 2019, 7:21pm UTC](https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548/1 "2019-03-08T19:21:53Z")

</div>

We are upgrading from ElasticSearch 5.x to 6.x

Currently we have 8 language specific indexes with 4 mapping types in each. Approximately 30K documents, which are not evenly distributed between the 8 indexes (certain indexes are exponentially more popular for content).

As a result of the breaking changes:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html](https://www.elastic.co/guide/en/elasticsearch/reference/6.0/breaking-changes-6.0.html)  
and a review of the following guidance piece:  
[https://www.elastic.co/guide/en/elasticsearch/reference/6.1/removal-of-types.html#removal-of-types](https://www.elastic.co/guide/en/elasticsearch/reference/6.1/removal-of-types.html#removal-of-types)

It seems that of my three options

1. 32 indexes of which many will only have less than a hundred documents
2. 4 type indexes with mixed languages
3. 8 language indexes with a custom type specifier and a bloated mapping

Option 3 is the most viable because of the following reasons - option 1 results in paying a high sharding cost for what are sparsely populated indexes, option 2 searching/analyzing a mixed language index is still discouraged much like it was back in 2.x and though Option 3 results in a bloated mapping, which might be a pain from a maintainability point of view, but has no performance pitfalls.

Is my reasoning, conclusions sound? Or have I misunderstood the documentation provided? Thanks a ton.

---

<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:** [April 5, 2019, 7:22pm UTC](https://discuss.elastic.co/t/line-check-for-index-migration-upgrade-to-6-x-from-5-x-removal-of-types-from-index/171548/2 "2019-04-05T19:22:02Z")

</div>

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