> Hello, I'm exploring Parent-Child feature in elasticsearch, but can't
> understand whether it's possible to find child by parent's field name? Sort
> of reverse 'has_child' query.
> Here is example:
> Author (parent)
> Book (child of Author)
> - title
> Can I search for all books author of which is from country:US for example?
I just tried that and I couldn't make it work, but I guess it's just
my lack of knowledge. So, provided that you could make it work, you
can search for the authors in "country":"us" or whatever, then get the
IDs. Then search for books by adding an OR filter (or a bool query)
for the parent's IDs that you just found.
Hi Shay. Is this still the case?
On Tuesday, 7 February 2012 07:08:15 UTC-5, kimchy wrote:
No, there isn't a way to search based on parent data and get back children, unless you embed the parent data in the children...
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
For more options, visit https://groups.google.com/groups/opt_out.