【发布时间】:2019-06-19 17:46:49
【问题描述】:
之前我使用的是 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 但是,请注意,我没有更新映射,而是创建了一个新映射,但仍然出现此错误,请告知该怎么做?
【问题讨论】:
标签: elasticsearch elasticsearch-mapping