# Is there a query that can return a combined parent child

**URL:** <https://discuss.elastic.co/t/is-there-a-query-that-can-return-a-combined-parent-child/18986>\
**Category:** Elasticsearch\
**Created:** [July 30, 2014, 7:23pm UTC](https://discuss.elastic.co/t/is-there-a-query-that-can-return-a-combined-parent-child/18986 "2014-07-30T19:23:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen\_Ward](https://avatars.discourse-cdn.com/v4/letter/s/a88e57/32.png) [@Stephen\_Ward](https://discuss.elastic.co/u/Stephen_Ward)\
**Post date:** [July 30, 2014, 7:23pm UTC](https://discuss.elastic.co/t/is-there-a-query-that-can-return-a-combined-parent-child/18986/1 "2014-07-30T19:23:53Z")

</div>

I've got my rivers working my parent child mapping done.

I've written some "has\_child" querys but I'm a noob to ES is there any  
way to "join" the data . i.e. aggs and bucketing the children ?  
if so does anyone have an example.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/692366f0-11eb-42ae-bf17-cce2788ea586%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/692366f0-11eb-42ae-bf17-cce2788ea586%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:12am UTC](https://discuss.elastic.co/t/is-there-a-query-that-can-return-a-combined-parent-child/18986/2 "2017-07-06T01:12:09Z")

</div>


