# Reindex from 5 to 6 to remove \_type

**URL:** https://discuss.elastic.co/t/reindex-from-5-to-6-to-remove-type/211381
**Category:** Elasticsearch
**Created:** [December 10, 2019, 9:52pm UTC](https://discuss.elastic.co/t/reindex-from-5-to-6-to-remove-type/211381 "2019-12-10T21:52:45Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![eee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eee/32/59157_2.png) [@eee](https://discuss.elastic.co/u/eee)
#### Post date: [December 10, 2019, 9:52pm UTC](https://discuss.elastic.co/t/reindex-from-5-to-6-to-remove-type/211381/1 "2019-12-10T21:52:45Z")

</div>

Hello,

I'm trying to basically follow the instructions here [Dec 15th, 2017: [EN][Elasticsearch] Going from multiple types to one type with the Reindex API](https://discuss.elastic.co/t/dec-15th-2017-en-elasticsearch-going-from-multiple-types-to-one-type-with-the-reindex-api/111315) except that I'm using "\_doc" instead of "doc" as that seems to be preferred now. I'm using a template with dynamic mapping for both the source and dest indices. When I run the reindex I get an error like "Field [field] misses required parameter [scaling\_factor]". "scaling\_factor" is required for both 5.x and 6.x indices so I don't know how the docs could be in the 5.x index or how only a couple of the nearly 1000 documents processed could have an error.

Any thoughts?

---

<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: [December 11, 2019, 7:54am UTC](https://discuss.elastic.co/t/reindex-from-5-to-6-to-remove-type/211381/2 "2019-12-11T07:54:26Z")

</div>

I think you're running into a problem with an index template or dynamic template. The new index that you're creating is trying to map some fields as a `scaled_float`, without specifying the `scaling_factor`. You will need to fix your index template or dynamic template first.

As to why you get this error with v6 and not v5 indexes - I don't know. Maybe Elasticsearch has become more strict for v6 indexes.

---

<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: [January 8, 2020, 7:54am UTC](https://discuss.elastic.co/t/reindex-from-5-to-6-to-remove-type/211381/3 "2020-01-08T07:54:26Z")

</div>

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