Possible to pull the parent + child in same query?


(Rick) #1

Hi,

In trying to experiment with parent + child, I'm not yet seeing a way to pull both the parent and children documents with the same query.

Both has_child and top_children seem to pull the parent, but not both the parent + children.

In this case there is a 1:1 between parent and child. The "top_children" documentation says "The top_children query runs the child query with an estimated hits size, and out of the hit docs, aggregates it into parent docs..." yet I don't see the child come back from this query.

Am I missing something blatantly obvious?? Is there a full decent example/gist that shows how this works??

THANKS!
Rick


(system) #2