早些时候我使用的是 1.x 版本,并使用以下语法创建子对象映射。
"foo": {
"type": "integer",
"doc_values": true
},
"foo.bar": {
"type": "integer",
"doc_values": true
},
"foo.bar.baz": {
"type": "integer",
"doc_values": true
},
但是现在当我在 ES 7.x 中使用相同的映射语法时,我遇到了以下错误:-
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Can't merge a non object mapping [foo] with an object mapping [foo]"
}
],
"type": "illegal_argument_exception",
"reason": "Can't merge a non object mapping [foo] with an object mapping [foo]"
},
"status": 400
}
我来到了这个 SO 帖子Can't merge a non object mapping with an object mapping error in machine learning(beta) module但是,请注意我没有更新映射,而是我正在创建一个新的映射仍然得到这个错误,拜托建议怎么办?