Hello everyone i've a problem with creating my index with a specific mapping so while i'm trying to create it with the following command
curl -XPUT http://localhost:9200/inviso-cluster -d @inviso/elasticsearch/mappings/cluster-settings.json
this is my mapping that i upgraded from ES 2.7 to match with ES 5.3
{
"settings": {
"index.analysis.analyzer.default.type": "standard",
"index.mapper.dynamic": "true",
"index.number_of_replicas": "1",
"index.number_of_shards": "6",
"index.mapping.ignore_malformed" : "true"
},
"mappings": {
"_default_": {
"_all": {
"enabled": true
}
},
"my_type": {
"properties": {
"cluster": {
"type": "text",
"fielddata": true,
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
},
"applications": {
"properties": {
"cluster": {
"index": "true",
"type": "keyword"
},
"cluster.id": {
"index": "true",
"type": "keyword"
},
"id": {
"index": "true",
"type": "keyword"
}
}
},
"metrics": {
"properties": {
"cluster": {
"index": "true",
"type": "keyword"
},
"cluster.id": {
"index": "true",
"type": "keyword"
}
}
},
"scheduler": {
"properties": {
"cluster": {
"index": "true",
"type": "keyword"
},
"cluster.id": {
"index": "true",
"type": "keyword"
}
}
}
}
}
and i'm getting the following error :
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Failed to parse mapping [scheduler]: mapper [cluster] of different type, current_type [keyword], merged_type [ObjectMapper]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping [scheduler]: mapper [cluster] of different type, current_type [keyword], merged_type [ObjectMapper]","caused_by":{"type":"illegal_argument_exception","reason":"mapper [cluster] of different type, current_type [keyword], merged_type [ObjectMapper]"}},"status":400}
can anyone help me plz !