【发布时间】:2016-02-13 16:41:39
【问题描述】:
我的操作:
父:国家,子:分公司,孙:员工
PUT /company { "映射": { “分支”: { “_父”:{ “类型”:“国家” } }, “员工”: { “_父”:{ “类型”:“分支” } } } }
我想添加一个孙子employee2,父级是分支:
PUT /company/employee2/_mapping { "employee2": { “_父”:{ “类型”:“分支” } } }
我收到错误信息:
{ “错误”:{ “根本原因”: [ { "type": "illegal_argument_exception", “原因”:“无法添加指向已存在类型的 _parent 字段” } ], "type": "illegal_argument_exception", "reason": "can't add a _parent field that point to a already existing type" }, "status": 400 }
我不知道该怎么办。有什么建议吗?谢谢。
【问题讨论】:
标签: elasticsearch parent elasticsearch-2.0