# Parent-Child Commun field name?

**URL:** <https://discuss.elastic.co/t/parent-child-commun-field-name/50850>\
**Category:** Elasticsearch\
**Created:** [May 24, 2016, 1:42pm UTC](https://discuss.elastic.co/t/parent-child-commun-field-name/50850 "2016-05-24T13:42:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Maher\_Ben\_Taleb\_Ali](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maher_ben_taleb_ali/32/26774_2.png) [@Maher\_Ben\_Taleb\_Ali](https://discuss.elastic.co/u/Maher_Ben_Taleb_Ali)\
**Post date:** [May 24, 2016, 1:42pm UTC](https://discuss.elastic.co/t/parent-child-commun-field-name/50850/1 "2016-05-24T13:42:11Z")

</div>

Hi,  
I have a question:  
can the parent and the child have the same field name??

Example:

```
parentDoc: childDoc :  
 {name: ********, {name:******
    age: **********age:*******
    salary: ********schoolname:**********
  } activities: **************
                                     }

```

Thank you!

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 25, 2016, 9:09am UTC](https://discuss.elastic.co/t/parent-child-commun-field-name/50850/2 "2016-05-25T09:09:11Z")

</div>

Yes they can, they are separate docs after all.

---

<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:** [July 5, 2017, 10:49pm UTC](https://discuss.elastic.co/t/parent-child-commun-field-name/50850/3 "2017-07-05T22:49:08Z")

</div>

Closed on July 5, 2017, 10:49pm UTC


