# Elasticsearch\_mapping\_conflict

**URL:** <https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192>\
**Category:** Elasticsearch\
**Created:** [June 13, 2017, 12:41pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192 "2017-06-13T12:41:00Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [June 13, 2017, 12:41pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/1 "2017-06-13T12:41:01Z")

</div>

Hi All,

I was changing one the fields in the index

I want this field "HOST\_START" as type date instead of string, so i updated the template today

 ![](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f095649c28d60f58ad5438dada223eaec042c7b5.png)

but i get a conflict ,which I know since the field as two values.How to fix this issue without deleting the index

Anyhelp would be much appreciated  
Thanks,  
Raj

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 14, 2017, 8:04am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/2 "2017-06-14T08:04:40Z")

</div>

Hey,

if you need to change a field, you have to reindex your data. You can use the [reindex API](https://www.elastic.co/guide/en/elasticsearch/reference/5.4/docs-reindex.html) to do that.

--Alex

---

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [June 14, 2017, 10:52am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/3 "2017-06-14T10:52:41Z")

</div>

Thank you for the reply,if am reindexing is it possible to use the same index name or it should be new name,since i have searches and dashboards with respect to old index name ,how to approach this scenario?

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [June 16, 2017, 10:01am UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/4 "2017-06-16T10:01:46Z")

</div>

If you need that string field alive, then you have to index into a new field or use a multi-fied. The main question is usually how useful is that string field, and does it already display wrong/errornous information.

--Alex

---

<div class="post-metadata">

**Author:** ![Raj\_Kumar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/raj_kumar/32/25420_2.png) [@Raj\_Kumar](https://discuss.elastic.co/u/Raj_Kumar)\
**Post date:** [June 21, 2017, 12:51pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/5 "2017-06-21T12:51:49Z")

</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:** [July 19, 2017, 12:52pm UTC](https://discuss.elastic.co/t/elasticsearch-mapping-conflict/89192/6 "2017-07-19T12:52:01Z")

</div>

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