# Parent - Child relationship not working for some documents

**URL:** <https://discuss.elastic.co/t/parent-child-relationship-not-working-for-some-documents/217714>\
**Category:** Elasticsearch\
**Created:** [February 4, 2020, 3:18am UTC](https://discuss.elastic.co/t/parent-child-relationship-not-working-for-some-documents/217714 "2020-02-04T03:18:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![user977505](https://avatars.discourse-cdn.com/v4/letter/u/4da419/32.png) [@user977505](https://discuss.elastic.co/u/user977505)\
**Post date:** [February 4, 2020, 3:18am UTC](https://discuss.elastic.co/t/parent-child-relationship-not-working-for-some-documents/217714/1 "2020-02-04T03:18:53Z")

</div>

I'm running into an issue where the Parent - Child relationship is working for some documents ONLY (using the has\_parent and has\_child queries).

Say there is a 'Brand' and 'Product' documents and brand is a parent document for product and product has ' \_parent ' mapped.

How do I ensure / what should I check to see if the two documents are properly established with Parent - Child relationship?

I would appreciate any pointers / help. TIA.

---

<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:** [March 3, 2020, 3:18am UTC](https://discuss.elastic.co/t/parent-child-relationship-not-working-for-some-documents/217714/2 "2020-03-03T03:18:54Z")

</div>

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