What happen about error:can't specify parent if no parent field has been configured


(weiyou) #1

kibina version:5.6.4

my commands are:
PUT company
{
"mappings": {
"branch":{},
"employee":{
"_parent": {
"type": "branch"
}
}
}
}

PUT /company/branch/london
{
"name": "London Westminster",
"city": "London",
"country": "UK"
}

PUT /company/employee/1?parent=london
{
"name": "Alice Smith",
"dob": "1970-10-24",
"hobby": "hiking"
}

what happen about the error can't specify parent if no parent field has been configured?


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.