# How to mass-migrate from string to keyword/text

**URL:** <https://discuss.elastic.co/t/how-to-mass-migrate-from-string-to-keyword-text/75506>\
**Category:** Elasticsearch\
**Created:** [February 17, 2017, 2:11pm UTC](https://discuss.elastic.co/t/how-to-mass-migrate-from-string-to-keyword-text/75506 "2017-02-17T14:11:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaszloHont](https://avatars.discourse-cdn.com/v4/letter/l/b2d939/32.png) [@LaszloHont](https://discuss.elastic.co/u/LaszloHont)\
**Post date:** [February 17, 2017, 2:11pm UTC](https://discuss.elastic.co/t/how-to-mass-migrate-from-string-to-keyword-text/75506/1 "2017-02-17T14:11:44Z")

</div>

I just upgraded from 2.x to 5.2.1 and I'd like to explicitly convert my existing string types into keyword or text. I understand that I cannot make this change to an existing index, so I would like to dump/change/load each index to make the change.

Is this possible, and is there a script to do this?

Hope someone can help.

---

<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:** [March 17, 2017, 2:12pm UTC](https://discuss.elastic.co/t/how-to-mass-migrate-from-string-to-keyword-text/75506/2 "2017-03-17T14:12:18Z")

</div>

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