Has_Child Without Specifying Type?


(Patrick White) #1

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c1875440-ea59-45d5-918b-00458474b979%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(Binh Ly-2) #2

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/9d5c5bad-bbe4-4436-b2f0-88b37bbe6405%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #3