Search across multiple children by single query

Hi,

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.

Thanks & Regards,
Jonbon Dash

--
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/db202e75-15c9-42a5-9741-017b52093fe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hey,

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...

--Alex

On Tue, Jun 24, 2014 at 10:23 AM, JONBON DASH jonbonworld@gmail.com wrote:

Hi,

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.

Thanks & Regards,
Jonbon Dash

--
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/db202e75-15c9-42a5-9741-017b52093fe9%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/db202e75-15c9-42a5-9741-017b52093fe9%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
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/CAGCwEM-ax3y_mLoJ535%3DCvaLqFTPM8axADEO8giXFMEim2EPeQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.