# Parent child RelationShip with ES 5.X

**URL:** <https://discuss.elastic.co/t/parent-child-relationship-with-es-5-x/107668>\
**Category:** Elasticsearch\
**Created:** [November 15, 2017, 6:28am UTC](https://discuss.elastic.co/t/parent-child-relationship-with-es-5-x/107668 "2017-11-15T06:28:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Narmatha](https://avatars.discourse-cdn.com/v4/letter/n/d26b3c/32.png) [@Narmatha](https://discuss.elastic.co/u/Narmatha)\
**Post date:** [November 15, 2017, 6:28am UTC](https://discuss.elastic.co/t/parent-child-relationship-with-es-5-x/107668/1 "2017-11-15T06:28:14Z")

</div>

I am changing the nested object model to parent child model.

Since type is going to get removed from elasticsearch 6.x onwards. Do we have parent-child relationship still ?

Then how to achieve this ?

---

<div class="post-metadata">

**Author:** ![Julien](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/julien/32/19688_2.png) [@Julien](https://discuss.elastic.co/u/Julien)\
**Post date:** [November 16, 2017, 9:38pm UTC](https://discuss.elastic.co/t/parent-child-relationship-with-es-5-x/107668/2 "2017-11-16T21:38:59Z")

</div>

As mentioned here : [https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-parent-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-parent-field.html)  
The new functionnality replacing parent child for version 6 is  
[https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html)

If you are on v5, refer to [https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping-parent-field.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/mapping-parent-field.html)

---

<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:** [December 14, 2017, 9:39pm UTC](https://discuss.elastic.co/t/parent-child-relationship-with-es-5-x/107668/3 "2017-12-14T21:39:17Z")

</div>

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