# String Type in ES5.0

**URL:** <https://discuss.elastic.co/t/string-type-in-es5-0/72717>\
**Category:** Elasticsearch\
**Created:** [January 25, 2017, 1:13am UTC](https://discuss.elastic.co/t/string-type-in-es5-0/72717 "2017-01-25T01:13:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![AmazoneWebService](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AmazoneWebService](https://discuss.elastic.co/u/AmazoneWebService)\
**Post date:** [January 25, 2017, 1:13am UTC](https://discuss.elastic.co/t/string-type-in-es5-0/72717/1 "2017-01-25T01:13:41Z")

</div>

I have a some question!

Previously I used Elastic 2.3 Version and now upgrade to ES 5.1

In 2.3, Analyzed or Not analyzed type is String.  
but from 5.0, I noticed that the type was changed to text and keword.

I was test the index by migration tool.  
but result is does not need to reindex the old index.

Is it normal to use without changing the type?

this is my system information.

- OS : centos7 operating system.
- upgraded ES from version 2.3 to version 5.1
- Using the Java API.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [January 25, 2017, 7:36am UTC](https://discuss.elastic.co/t/string-type-in-es5-0/72717/2 "2017-01-25T07:36:10Z")

</div>

Yes. If you have existing indices using `string`, elasticsearch will be able to read them.  
But you can not create a new index using a type `string` in the mapping.

---

<div class="post-metadata">

**Author:** ![AmazoneWebService](https://avatars.discourse-cdn.com/v4/letter/a/e19adc/32.png) [@AmazoneWebService](https://discuss.elastic.co/u/AmazoneWebService)\
**Post date:** [January 25, 2017, 8:59am UTC](https://discuss.elastic.co/t/string-type-in-es5-0/72717/3 "2017-01-25T08:59:59Z")

</div>

thank you!!

---

<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:** [February 22, 2017, 9:00am UTC](https://discuss.elastic.co/t/string-type-in-es5-0/72717/4 "2017-02-22T09:00:40Z")

</div>

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