Hi
We recently migrated to ES 6.1.2 from ES 1.7.
in the older version we had index mapping as
[
{
"ts_dynamic_template": {
"mapping": {
"norms": {
"enabled": false
},
"index": "not_analyzed",
"type": "string"
},
"match_mapping_type": "string"
}
}
]
that used to run flawless. With ES 6 we moved to this mapping with type keyword, since we did not want the properties/fields analysed
"dynamic_templates": [
{
"ts_dynamic_template": {
"match_mapping_type": "string",
"mapping": {
"index": true,
"norms": false,
"type": "keyword"
}
}
}
]
However, our high level rest client keeps throwing this error for a few fields which can have multiple types
"Bulk [51a1df8358678f340d301811beef97f0] executed with failures ElasticsearchException[Elasticsearch exception [type=mapper_parsing_exception, reason=object mapping for [eventType] tried to parse field [eventType] as object, but found a concrete value]]"
org.elasticsearch.ElasticsearchException: Elasticsearch exception [type=mapper_parsing_exception, reason=object mapping for [eventType] tried to parse field [eventType] as object, but found a concrete value]
at org.elasticsearch.ElasticsearchException.innerFromXContent(ElasticsearchException.java:490)
at org.elasticsearch.ElasticsearchException.fromXContent(ElasticsearchException.java:406)
at org.elasticsearch.action.bulk.BulkItemResponse.fromXContent(BulkItemResponse.java:135)
at org.elasticsearch.action.bulk.BulkResponse.fromXContent(BulkResponse.java:198)
Pretty much stuck at this. Any ideas?