# Can the child document of a parent-child relationship have nested inner documents?

**URL:** <https://discuss.elastic.co/t/can-the-child-document-of-a-parent-child-relationship-have-nested-inner-documents/85732>\
**Category:** Elasticsearch\
**Created:** [May 15, 2017, 9:58am UTC](https://discuss.elastic.co/t/can-the-child-document-of-a-parent-child-relationship-have-nested-inner-documents/85732 "2017-05-15T09:58:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Origin\_Jing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/origin_jing/32/90877_2.png) [@Origin\_Jing](https://discuss.elastic.co/u/Origin_Jing)\
**Post date:** [May 15, 2017, 9:58am UTC](https://discuss.elastic.co/t/can-the-child-document-of-a-parent-child-relationship-have-nested-inner-documents/85732/1 "2017-05-15T09:58:06Z")

</div>

I have to use parent-child and nested document at the same time due to the features provided by each type, So Can I have the child document have nested inner documents?

---

<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 15, 2017, 10:14am UTC](https://discuss.elastic.co/t/can-the-child-document-of-a-parent-child-relationship-have-nested-inner-documents/85732/2 "2017-05-15T10:14:05Z")

</div>

You cannot mix the two.

---

<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:** [June 12, 2017, 10:27am UTC](https://discuss.elastic.co/t/can-the-child-document-of-a-parent-child-relationship-have-nested-inner-documents/85732/3 "2017-06-12T10:27:49Z")

</div>

Closed on June 12, 2017, 10:27am UTC

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