【发布时间】:2019-09-06 01:14:45
【问题描述】:
尝试在 Elasticsearch 7 中插入以下映射时
PUT my_index/items/_mapping
{
"settings":{
},
"mappings":{
"items":{
"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
}
}
}
}
}
}
}
}
}
我收到表单错误:
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters:
是什么导致了这个错误?
【问题讨论】:
-
还有一些其他问题问的很相似,但是都和具体的用途有关或者和Elasticsearch 7.0.0之前的版本有关这个问题/答案的目标是有为 Elasticsearch 7 提供一个单一、干净、可概括的答案,因为随着人们从以前的版本升级到 ES 7,这可能是一个常见问题
标签: elasticsearch