hi, is it possible to have a query that covers both parent and child
documents? e.g., if i have parent docs for blogs and child docs for
comments on each blog doc, then is it possible to do a query that searches
both in the blog post and comments?
the has_child query works fine by itself but i am not able to figure out
how to combine the two.
thanks
--
Hiya
On Thu, 2013-01-17 at 13:11 -0800, T Vinod Gupta wrote:
hi, is it possible to have a query that covers both parent and child
documents? e.g., if i have parent docs for blogs and child docs for
comments on each blog doc, then is it possible to do a query that
searches both in the blog post and comments?
the has_child query works fine by itself but i am not able to figure
out how to combine the two.
Do you mean that you want both blog and comment docs to be returned from
the same query?
There are various ways of approaching this problem, but it kinda depends
what you're trying to achieve. If you could be more specific, it'd be
easier to provide suggestions
clint
--