Mapper for [kibanaSavedObjectMeta.searchSourceJSON] conflicts with existing mapping in other types

After update from Elasticsearch 2.1 to 5.6 got this error in Elasticsearch log:

java.lang.IllegalArgumentException: Mapper for [kibanaSavedObjectMeta.searchSourceJSON] conflicts with existing mapping in other types:
[mapper [kibanaSavedObjectMeta.searchSourceJSON] is used by multiple types. Set update_all_types to true to update [fielddata] across all types.]
at org.elasticsearch.index.mapper.FieldTypeLookup.checkCompatibility(FieldTypeLookup.java:130) ~[elasticsearch-5.6.0.jar:5.6.0]

Did it generate a bad mapping during upgrade?

Hi @asidoren,

In Elasticsearch 5.X fields in the same index with the same name in two different types must have the same mapping, as they are backed by the same field internally.

https://www.elastic.co/guide/en/elasticsearch/reference/5.0/indices-put-mapping.html#merging-conflicts

You should fix this.

Cheers,
LG

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