# Retrieve children docs only

**URL:** <https://discuss.elastic.co/t/retrieve-children-docs-only/5184>\
**Category:** Elasticsearch\
**Created:** [August 17, 2011, 11:38am UTC](https://discuss.elastic.co/t/retrieve-children-docs-only/5184 "2011-08-17T11:38:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avasilenko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/avasilenko/32/2901_2.png) [@avasilenko](https://discuss.elastic.co/u/avasilenko)\
**Post date:** [August 17, 2011, 11:38am UTC](https://discuss.elastic.co/t/retrieve-children-docs-only/5184/1 "2011-08-17T11:38:53Z")

</div>

Hello,

I have 1 index **object** with 2 types: _entity_ and _shop_. Object shop is child of object entity and has [following mapping](https://gist.github.com/1151358).  
Sending [this query](https://gist.github.com/1151361) to object/\_search returns me the child doc only, which is ok, as I can manually join it.  
But, when I add term for parent doc, I receive parent doc only as a search hit. [Query example](https://gist.github.com/1151366).

Since according to the docs there is no way to perform parent and child join, can I at least fetch child docs with search conditions specified for both parent and child?

Regards,  
Alex

---

<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, 3:56am UTC](https://discuss.elastic.co/t/retrieve-children-docs-only/5184/2 "2017-07-06T03:56:47Z")

</div>


