# Has\_Child Without Specifying Type?

**URL:** https://discuss.elastic.co/t/has-child-without-specifying-type/16692
**Category:** Elasticsearch
**Created:** [March 29, 2014, 3:08am UTC](https://discuss.elastic.co/t/has-child-without-specifying-type/16692 "2014-03-29T03:08:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Patrick\_White](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_white/32/1687_2.png) [@Patrick\_White](https://discuss.elastic.co/u/Patrick_White)
#### Post date: [March 29, 2014, 3:08am UTC](https://discuss.elastic.co/t/has-child-without-specifying-type/16692/1 "2014-03-29T03:08:29Z")

</div>

Is it possible to do a has\_child query without specifying type? I suppose  
the same question would apply for a nested document and path. The use case  
is a common parent type (think of it sort of like a placeholder) with a  
children of 10 different types. I could execute a few different queries,  
but that seems a bit cludgy.

Any advice would be much appreciate!

Thanks!  
-PW

--  
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/c1875440-ea59-45d5-918b-00458474b979%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/c1875440-ea59-45d5-918b-00458474b979%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

### Author: ![Binh\_Ly\_2](https://avatars.discourse-cdn.com/v4/letter/b/d07c76/32.png) [@Binh\_Ly\_2](https://discuss.elastic.co/u/Binh_Ly_2)
#### Post date: [March 31, 2014, 7:59pm UTC](https://discuss.elastic.co/t/has-child-without-specifying-type/16692/2 "2014-03-31T19:59:17Z")

</div>

Unfortunately no. However, you certainly can do a bool query/filter with  
multiple has\_childs in it if needed.

--  
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/9d5c5bad-bbe4-4436-b2f0-88b37bbe6405%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9d5c5bad-bbe4-4436-b2f0-88b37bbe6405%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:39am UTC](https://discuss.elastic.co/t/has-child-without-specifying-type/16692/3 "2017-07-06T01:39:15Z")

</div>


