Anyone plz share a sample search query in json where one parent have
multiple childs & in single query it can search across both childs?
I can fetch each child's parent information using "has_child". But not able
to find how to use "has_child" at a time for two different childs in a
single query.
could you maybe explain where the problem is or which queries you already
tried so far? A possible solution might be to write a has has_child query,
that contains boolean query, which contains to two must clauses, like this:
has_child : { bool : { must : [ term : {}, query_string : {} ] } }
does this make sense? Did this fail? Note, that term and query string are
just examples...
Anyone plz share a sample search query in json where one parent have
multiple childs & in single query it can search across both childs?
I can fetch each child's parent information using "has_child". But not
able to find how to use "has_child" at a time for two different childs in a
single query.
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.