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

**URL:** <https://discuss.elastic.co/t/what-happen-about-error-cant-specify-parent-if-no-parent-field-has-been-configured/153133>\
**Category:** Elasticsearch\
**Created:** [October 19, 2018, 7:53am UTC](https://discuss.elastic.co/t/what-happen-about-error-cant-specify-parent-if-no-parent-field-has-been-configured/153133 "2018-10-19T07:53:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![weiyou](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@weiyou](https://discuss.elastic.co/u/weiyou)\
**Post date:** [October 19, 2018, 7:53am UTC](https://discuss.elastic.co/t/what-happen-about-error-cant-specify-parent-if-no-parent-field-has-been-configured/153133/1 "2018-10-19T07:53:54Z")

</div>

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**?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 16, 2018, 7:53am UTC](https://discuss.elastic.co/t/what-happen-about-error-cant-specify-parent-if-no-parent-field-has-been-configured/153133/2 "2018-11-16T07:53:55Z")

</div>

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