# Changing type for existed field

**URL:** <https://discuss.elastic.co/t/changing-type-for-existed-field/134141>\
**Category:** Elasticsearch\
**Created:** [June 1, 2018, 5:40am UTC](https://discuss.elastic.co/t/changing-type-for-existed-field/134141 "2018-06-01T05:40:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![oms1226](https://avatars.discourse-cdn.com/v4/letter/o/c57346/32.png) [@oms1226](https://discuss.elastic.co/u/oms1226)\
**Post date:** [June 1, 2018, 5:40am UTC](https://discuss.elastic.co/t/changing-type-for-existed-field/134141/1 "2018-06-01T05:40:32Z")

</div>

I want to know how to change type for a existed field.  
But I have not found resolution.  
So, I add the new field to \_index as well as change from existed field name to new field name.  
But, that is not able to aggregate a existed field and can't analyse existed data.  
Under using the existed field, I will change a type for the existed field.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 1, 2018, 5:59am UTC](https://discuss.elastic.co/t/changing-type-for-existed-field/134141/2 "2018-06-01T05:59:42Z")

</div>

You need to reindex the data.

---

<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:** [June 29, 2018, 5:59am UTC](https://discuss.elastic.co/t/changing-type-for-existed-field/134141/3 "2018-06-29T05:59:45Z")

</div>

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