# How to change mappings of index data type from "Text" to "float"

**URL:** <https://discuss.elastic.co/t/how-to-change-mappings-of-index-data-type-from-text-to-float/232043>\
**Category:** Elasticsearch\
**Created:** [May 11, 2020, 2:18pm UTC](https://discuss.elastic.co/t/how-to-change-mappings-of-index-data-type-from-text-to-float/232043 "2020-05-11T14:18:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anil\_Kumar8](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anil_kumar8/32/46158_2.png) [@Anil\_Kumar8](https://discuss.elastic.co/u/Anil_Kumar8)\
**Post date:** [May 11, 2020, 2:18pm UTC](https://discuss.elastic.co/t/how-to-change-mappings-of-index-data-type-from-text-to-float/232043/1 "2020-05-11T14:18:21Z")

</div>

Hi,  
I have part of one month data existing in old server elastic 6.8 and after re-index moved to new server 7.8.  
Issues is the mapping of first part of data is showing data type which was moved from 6.8 is showing ""type": "text".  
But in the latest one 7.8 the second part of data is showing data type as "type": "float".

Please suggest the ways which i can change my data type to new float type .  
How to merge these two indexes without losing any data.

Thanks.

Is there a way i can map my old index data to the existing mapping. to resolve the above issue

---

<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 8, 2020, 2:18pm UTC](https://discuss.elastic.co/t/how-to-change-mappings-of-index-data-type-from-text-to-float/232043/2 "2020-06-08T14:18:23Z")

</div>

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