# Mapper conflict

**URL:** <https://discuss.elastic.co/t/mapper-conflict/62700>\
**Category:** Elasticsearch\
**Created:** [October 11, 2016, 10:10am UTC](https://discuss.elastic.co/t/mapper-conflict/62700 "2016-10-11T10:10:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 11, 2016, 10:10am UTC](https://discuss.elastic.co/t/mapper-conflict/62700/1 "2016-10-11T10:10:42Z")

</div>

I updated my ES v1.5 to 2.4 and I am getting so many errors about mapper conflicts. I would like to know if it is possible to change the mapper field of every index before starting the elasticsearch service or ignore all the data that has errors in other to get elasticsearch up.

Thanks

Error Example:  
Exception in thread "main" java.lang.IllegalStateException: unable to upgrade the mappings for the index [wordlist], reason: [Mapper for [\_id] conflicts with existing mapping in other types:  
[mapper [\_id] has different [index] values]]  
Likely root cause: java.lang.IllegalArgumentException: Mapper for [\_id] conflicts with existing mapping in other types:  
[mapper [\_id] has different [index] values]  
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:153)  
at org.elasticsearch.index.mapper.FieldTypeLookup.copyAndAddAll(FieldTypeLookup.java:115)  
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:381)  
at org.elasticsearch.index.mapper.MapperService.merge(MapperService.java:320)  
at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.checkMappingsCompatibility(MetaDataIndexUpgradeService.java:302)  
at org.elasticsearch.cluster.metadata.MetaDataIndexUpgradeService.upgradeIndexMetaData(MetaDataIndexUpgradeService.java:116)  
at org.elasticsearch.gateway.GatewayMetaState.pre20Upgrade(GatewayMetaState.java:228)  
at org.elasticsearch.gateway.GatewayMetaState.(GatewayMetaState.java:87)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)  
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)  
at \<\<\>\>  
at org.elasticsearch.node.Node.(Node.java:213)  
at org.elasticsearch.node.Node.(Node.java:140)  
at org.elasticsearch.node.NodeBuilder.build(NodeBuilder.java:143)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:194)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:286)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

---

<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:** [October 11, 2016, 10:20am UTC](https://discuss.elastic.co/t/mapper-conflict/62700/2 "2016-10-11T10:20:56Z")

</div>

You should read [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/breaking\_20\_mapping\_changes.html#\_conflicting\_field\_mappings](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/breaking_20_mapping_changes.html#_conflicting_field_mappings)

---

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 11, 2016, 10:26am UTC](https://discuss.elastic.co/t/mapper-conflict/62700/3 "2016-10-11T10:26:27Z")

</div>

I can not change any mapping because the service is down and the link that you provided does not show a solution.

---

<div class="post-metadata">

**Author:** ![minniek](https://avatars.discourse-cdn.com/v4/letter/m/aeb1de/32.png) [@minniek](https://discuss.elastic.co/u/minniek)\
**Post date:** [October 11, 2016, 11:07am UTC](https://discuss.elastic.co/t/mapper-conflict/62700/4 "2016-10-11T11:07:47Z")

</div>

I removed all the docs located in /var/lib/elasticsearch/YOUR\_NODE/nodes/. Now my Es is up

---

<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 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/mapper-conflict/62700/5 "2017-07-05T22:13:26Z")

</div>


