# Parent-child and Nested datatypes alternatives for ES 6.0 and beyond

**URL:** https://discuss.elastic.co/t/parent-child-and-nested-datatypes-alternatives-for-es-6-0-and-beyond/94012
**Category:** Elasticsearch
**Created:** [July 20, 2017, 9:05pm UTC](https://discuss.elastic.co/t/parent-child-and-nested-datatypes-alternatives-for-es-6-0-and-beyond/94012 "2017-07-20T21:05:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![moy2010](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moy2010/32/22403_2.png) [@moy2010](https://discuss.elastic.co/u/moy2010)
#### Post date: [July 20, 2017, 9:05pm UTC](https://discuss.elastic.co/t/parent-child-and-nested-datatypes-alternatives-for-es-6-0-and-beyond/94012/1 "2017-07-20T21:05:30Z")

</div>

Now that ES 6.0 is just around the corner and as a preparation for typeless mapping in ES 7.0, what alternatives are for parent-child and nested datatypes?

This thread will also be helpful for users of Kibana as part of the ELK stack.

---

<div class="post-metadata">

### Author: ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)
#### Post date: [July 21, 2017, 6:33am UTC](https://discuss.elastic.co/t/parent-child-and-nested-datatypes-alternatives-for-es-6-0-and-beyond/94012/2 "2017-07-21T06:33:20Z")

</div>

From 6.0, the \_parent field mapping will be replaced by the new join field: [https://www.elastic.co/guide/en/elasticsearch/reference/5.x/parent-join.html](https://www.elastic.co/guide/en/elasticsearch/reference/5.x/parent-join.html)

This new field type is available starting from 5.6.0 to provide upgrading to it prior to moving to 6.0  
The has\_child, has\_parent, parent\_id queries remain to work the same and are compatible with the new join field. (same applies for the `children` aggregation and inner hits)

Nested type hasn't changed and remains to work like before in 6.0 and beyond.

---

<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: [August 18, 2017, 6:33am UTC](https://discuss.elastic.co/t/parent-child-and-nested-datatypes-alternatives-for-es-6-0-and-beyond/94012/3 "2017-08-18T06:33:24Z")

</div>

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