Elasticsearch 7 : Root mapping definition has unsupported parameters (mapper_parsing_exception)
In Elasticsearch 7, mapping types have been deprecated, which is causing the breaking change at the source of this problem.
Announcement by the Elasticsearch team of the deprecation, roadmap, and alternatives.
To fix this, simply remove all references to mapping types ("items" in this example):
PUT my_index/_mapping
{
"settings":{
},
"mappings":{
"properties":{
"products":{
"properties":{
"classification":{
"type":"text",
"fields":{
"raw":{
"type":"keyword",
"ignore_above":256
}
}
},
"original_text":{
"type":"text",
"store":false,
"fields":{
"raw":{
"type":"keyword",
"ignore_above":256
}
}
}
}
},
"title":{
"type":"text",
"fields":{
"raw":{
"type":"keyword",
"ignore_above":256
}
},
"analyzer":"autocomplete"
},
"image":{
"properties":{
"type":{
"type":"text",
"fields":{
"raw":{
"type":"keyword",
"ignore_above":256
}
}
},
"location":{
"type":"text",
"store":false,
"fields":{
"raw":{
"type":"keyword",
"ignore_above":256
}
}
}
}
}
}
}
}