# How to convert type in index

**URL:** https://discuss.elastic.co/t/how-to-convert-type-in-index/185082
**Category:** Elasticsearch
**Created:** [June 11, 2019, 3:55am UTC](https://discuss.elastic.co/t/how-to-convert-type-in-index/185082 "2019-06-11T03:55:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shwesinhan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shwesinhan/32/78663_2.png) [@shwesinhan](https://discuss.elastic.co/u/shwesinhan)
#### Post date: [June 11, 2019, 3:55am UTC](https://discuss.elastic.co/t/how-to-convert-type-in-index/185082/1 "2019-06-11T03:55:46Z")

</div>

Hi there,

I have issue recently. I have production index mapping where I defined "elapsed\_time" as "float", then later accidentally inject "elasped\_time" as "string". It becomes type conflict now.  
When I re-index, I got this response

> failures": [  
> {  
> "index": "logstash-2019.05.new",  
> "type": "logs",  
> "id": "AWq1uGtoIXYchKQKQ\_9j",  
> "cause": {  
> "type": "mapper\_parsing\_exception",  
> "reason": "failed to parse [elapsed\_time]",  
> "caused\_by": {  
> "type": "number\_format\_exception",  
> "reason": "For input string: "0,104""  
> }  
> },  
> "status": 400  
> }

index is monthly format. but i don't want to delete index either  
how do i solve it? plz kindly advise to me.

---

<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: [July 9, 2019, 3:55am UTC](https://discuss.elastic.co/t/how-to-convert-type-in-index/185082/2 "2019-07-09T03:55:52Z")

</div>

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