My operation:
parent: country, child: branch, grandson: employee
PUT / company {"mappings": {"branch": {"_parent": {"type": "country"}}, "hired worker": {"_parent": {"type": "branch"}}} }
I want to add employee grandson2, parent branch:
PUT / company / employee2 / _mapping {"employee2": {"_parent": {"type": "branch"}}}
I get the wrong message:
{"error": {"main reason": [{"type": "illegal_argument_exception", "reason": "cannot add the _parent field indicating the already existing type"}], "type": "illegal_argument_exception", " reason ":" cannot add the _parent field indicating the already existing type "}," status ": 400}
I do not know how I can do this. Any suggestions? Thank you
Edison1986
source share