# Missing parent objects breaking has\_child queries?

**URL:** <https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485>\
**Category:** Elasticsearch\
**Created:** [May 27, 2011, 12:05am UTC](https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485 "2011-05-27T00:05:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![byuva](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@byuva](https://discuss.elastic.co/u/byuva)\
**Post date:** [May 27, 2011, 12:05am UTC](https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485/1 "2011-05-27T00:05:25Z")

</div>

ES seems to be hanging without reporting an error when I try to facet  
or scan a has\_child query. I suspect this may be due to some parent  
objects which are missing. If this is indeed the issue would it be  
possible to either report an error or allow the query to skip the  
missing parent objects (perhaps returning a dummy object with the  
record id it was trying to find)?

-brian

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [May 27, 2011, 8:13am UTC](https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485/2 "2011-05-27T08:13:58Z")

</div>

Can you post an issue with a recreation? Scanning a parent child query might be problematic, but not sure why it hangs.

On Friday, May 27, 2011 at 3:05 AM, merrellb wrote:

> ES seems to be hanging without reporting an error when I try to facet  
> or scan a has\_child query. I suspect this may be due to some parent  
> objects which are missing. If this is indeed the issue would it be  
> possible to either report an error or allow the query to skip the  
> missing parent objects (perhaps returning a dummy object with the  
> record id it was trying to find)?
> 
> -brian

---

<div class="post-metadata">

**Author:** ![byuva](https://avatars.discourse-cdn.com/v4/letter/b/b5ac83/32.png) [@byuva](https://discuss.elastic.co/u/byuva)\
**Post date:** [May 27, 2011, 2:43pm UTC](https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485/3 "2011-05-27T14:43:13Z")

</div>

Adding all the parent objects seems to fix the hanging problem. I  
will see if I can come up with a trivial recreation and post an issue.

On May 27, 4:13 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Can you post an issue with a recreation? Scanning a parent child query might be problematic, but not sure why it hangs.
> 
> On Friday, May 27, 2011 at 3:05 AM, merrellb wrote:
> 
> > ES seems to be hanging without reporting an error when I try to facet  
> > or scan a has\_child query. I suspect this may be due to some parent  
> > objects which are missing. If this is indeed the issue would it be  
> > possible to either report an error or allow the query to skip the  
> > missing parent objects (perhaps returning a dummy object with the  
> > record id it was trying to find)?
> 
> > -brian

---

<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:** [July 6, 2017, 4:05am UTC](https://discuss.elastic.co/t/missing-parent-objects-breaking-has-child-queries/4485/4 "2017-07-06T04:05:11Z")

</div>

Closed on July 6, 2017, 4:05am UTC


