# Fix mapping conflict

**URL:** https://discuss.elastic.co/t/fix-mapping-conflict/114309
**Category:** Kibana
**Created:** [January 5, 2018, 4:32pm UTC](https://discuss.elastic.co/t/fix-mapping-conflict/114309 "2018-01-05T16:32:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Dmitry\_Reshetnik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dmitry_reshetnik/32/88780_2.png) [@Dmitry\_Reshetnik](https://discuss.elastic.co/u/Dmitry_Reshetnik)
#### Post date: [January 5, 2018, 4:32pm UTC](https://discuss.elastic.co/t/fix-mapping-conflict/114309/1 "2018-01-05T16:32:41Z")

</div>

I have a Kibana not owned by me.  
As of now it contains 1000+ fields (generated from JSON inputs).  
There are few fields which were (maybe manually configured as String), and few visualizations which used these fields.  
At some moment the index fields list was refreshed, and these fields became Number. And for some time were indexed as numbers.  
Now we have conflicts "The type of this field changes across indices. It is unavailable for many analysis functions."

Is there any chance to convert it to String without losing the data?

---

<div class="post-metadata">

### Author: ![dsnider](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dsnider/32/44068_2.png) [@dsnider](https://discuss.elastic.co/u/dsnider)
#### Post date: [January 5, 2018, 7:43pm UTC](https://discuss.elastic.co/t/fix-mapping-conflict/114309/2 "2018-01-05T19:43:46Z")

</div>

You will need to convert all the data in that specific field to a string. Once you do that you'd need to reindex that data in Kibana.

This article can you good starting point

> **[Changing Mapping with Zero Downtime
	  	 | Elastic](https://www.elastic.co/blog/changing-mapping-with-zero-downtime)**
>
> Update November 2, 2015: Make sure to check out the updates with Elasticsearch mappings introduced in the 2.0 release.Update May 1, 2017: This blog was originally published several major versions...

---

<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 2, 2018, 7:43pm UTC](https://discuss.elastic.co/t/fix-mapping-conflict/114309/3 "2018-02-02T19:43:55Z")

</div>

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