是否可以在Elastic Search 7.x中删除关系? 它在documentation中说:“可以向现有联接字段添加新关系。”但这并没有说明消除关系。
例如,当我将映射放在索引上时,它最初可以工作。
PUT /randomindex/_mapping
{
"properties":{
"my_property": {
"type":"join",
"relations": {
"parent_1": "child_1"
}
}
}
}
然后,当我尝试更改它时,出现错误:
PUT /randomindex/_mapping
{
"properties":{
"my_property": {
"type":"join",
"relations": {
"parent_2": "child_2"
}
}
}
}
这是响应:
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[tiebreaker-0000000002][xxx.xxx.xxx.xxx:xxxxx][indices:admin/mapping/put]"
}
],
"type": "illegal_state_exception",
"reason": "invalid update for join field [my_property]:\n[cannot remove parent [parent_1] in join field [my_property]]"
},
"status": 500
}