# \_all query not working with parent-child document

**URL:** <https://discuss.elastic.co/t/-all-query-not-working-with-parent-child-document/37673>\
**Category:** Elasticsearch\
**Created:** [December 21, 2015, 9:29am UTC](https://discuss.elastic.co/t/-all-query-not-working-with-parent-child-document/37673 "2015-12-21T09:29:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dishari1990](https://avatars.discourse-cdn.com/v4/letter/d/848f3c/32.png) [@dishari1990](https://discuss.elastic.co/u/dishari1990)\
**Post date:** [December 21, 2015, 9:29am UTC](https://discuss.elastic.co/t/-all-query-not-working-with-parent-child-document/37673/1 "2015-12-21T09:29:34Z")

</div>

Hi,

I am getting a nullpointerexception while doing \_all match query if the document has a parent-child relationship. but the error does not occur if I have a single type in the document.

Its a single index with two types - one marked and parent and the other its child

Any Clues?

TIA,  
Dishari

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [December 21, 2015, 9:44am UTC](https://discuss.elastic.co/t/-all-query-not-working-with-parent-child-document/37673/2 "2015-12-21T09:44:19Z")

</div>

This seems to be the same as [\_all query returning null pointer exception while parent-child document exists](https://discuss.elastic.co/t/-all-query-returning-null-pointer-exception-while-parent-child-document-exists/37670) . Please keep the conversation to 1 thread and be patient when waiting for a response.

---

<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:** [December 21, 2015, 10:19am UTC](https://discuss.elastic.co/t/-all-query-not-working-with-parent-child-document/37673/3 "2015-12-21T10:19:24Z")

</div>


