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)
-name
-country
Book (child of Author)
title
...
Can I search for all books author of which is from country:US for example?
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)
-name
-country
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.
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...
On Sunday, February 5, 2012 at 10:40 PM, Igor Semenko wrote:
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)
-name
-country
Book (child of Author)
title
...
Can I search for all books author of which is from country:US for example?
On Tue, Jul 23, 2013 at 8:24 AM, Nick Hoffman <ni...@deadorange.com<javascript:>
wrote:
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.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
For more options, visit https://groups.google.com/groups/opt_out.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.