# Conflicting field mappings

**URL:** <https://discuss.elastic.co/t/conflicting-field-mappings/49200>\
**Category:** Kibana\
**Created:** [May 4, 2016, 3:46pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200 "2016-05-04T15:46:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [May 4, 2016, 3:46pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/1 "2016-05-04T15:46:38Z")

</div>

We're trying to upgrade from ELK 1.7.1 to 2.3  
However until we fixed the conflict field mapping on the .kibana index, we cannot move forward with the upgrade.  
Error from the Migration Checker:  
Conflicting field mappings:  
Mapping for field dashboard:hits conflicts with: search:hits. Check parameter: type  
"dashboard" : {  
"properties" : {  
"description" : {  
"type" : "string"  
},  
"hits" : {  
"type" : "long"  
},  
"search" : {  
"properties" : {  
"columns" : {  
"type" : "string"  
},  
"description" : {  
"type" : "string"  
},  
"hits" : {  
"type" : "integer"  
},

I am not sure how to fix this, please help

---

<div class="post-metadata">

**Author:** ![shaunak](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/shaunak/32/6643_2.png) [@shaunak](https://discuss.elastic.co/u/shaunak)\
**Post date:** [May 4, 2016, 4:15pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/2 "2016-05-04T16:15:03Z")

</div>

Hi, it looks like you are running into this similar issue: [Java.lang.IllegalArgumentException: Mapper for [hits] conflicts with existing mapping in other types](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041)

Please try Jon's suggestion in this comment: [Java.lang.IllegalArgumentException: Mapper for [hits] conflicts with existing mapping in other types](https://discuss.elastic.co/t/java-lang-illegalargumentexception-mapper-for-hits-conflicts-with-existing-mapping-in-other-types/40041/4)

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [May 4, 2016, 7:35pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/3 "2016-05-04T19:35:30Z")

</div>

I am not getting any exception as noted on your comments. Users can access Kibana UI without any issue.  
My problem is related to this link below  
[https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking\_20\_mapping\_changes.html#\_conflicting\_field\_mappings](https://www.elastic.co/guide/en/elasticsearch/reference/2.0/breaking_20_mapping_changes.html#_conflicting_field_mappings)  
It says that .kibana index must be deleted and re-index, how can I do this without losing all the objects that users have created in Kibana?  
The whole company uses it.  
Please help

---

<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:** [May 4, 2016, 10:03pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/4 "2016-05-04T22:03:26Z")

</div>

You may need to export all your objects, then reimport them.

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [May 5, 2016, 8:07pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/5 "2016-05-05T20:07:51Z")

</div>

Hi warkolm, can you please provide an example on how to export and reimport the objects.

Greatly appreciated.

---

<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:** [May 5, 2016, 8:57pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/6 "2016-05-05T20:57:01Z")

</div>

Have a look at [https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html](https://www.elastic.co/guide/en/kibana/current/managing-saved-objects.html)

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [May 12, 2016, 3:30pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/7 "2016-05-12T15:30:25Z")

</div>

Hi Mark  
I tried to recreate this problem in our QA environment with 1 logstash, 1 Kibana & 3 Elasticsearch servers. The .kibana mapping has the same settings but when I ran the Migration checker it did not show any conflict as in production environment. I am not sure how to address this, please help.  
In production the message was " Mapping for field dashboard:hits conflicts with: search:hits. Check parameter: type "

"dashboard" : {  
"properties" : {  
"description" : {  
"type" : "string"  
},  
"hits" : {  
"type" : "integer"

"search" : {  
"properties" : {  
"columns" : {  
"type" : "string"  
},  
"description" : {  
"type" : "string"  
},  
"hits" : {  
"type" : "integer"

---

<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:** [May 12, 2016, 9:37pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/8 "2016-05-12T21:37:38Z")

</div>

Did you export them and then reimport them as suggested?

---

<div class="post-metadata">

**Author:** ![genesis](https://avatars.discourse-cdn.com/v4/letter/g/96bed5/32.png) [@genesis](https://discuss.elastic.co/u/genesis)\
**Post date:** [May 17, 2016, 8:59pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/9 "2016-05-17T20:59:05Z")

</div>

Yes, I did Mark, still the same problem

---

<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 6, 2017, 1:53pm UTC](https://discuss.elastic.co/t/conflicting-field-mappings/49200/10 "2017-07-06T13:53:08Z")

</div>


