On Mon, Dec 22, 2014 at 2:16 PM, Rajesh <rajesh.panneersel...@aspiresys.com>
wrote:
>
> OR query between child docs.
> fq = {!parent which=\"type:parent\" v=\"productname:childproduct OR
> orderDetail:childproduct2\"}
> fl = *,[child parentFilter=\"type:parent\"
> childFilter=\"productname:childproduct OR orderDetail:childproduct2\"]
>
> How can I get a parent which has both childproduct and childproduct2 but in
> different childrens.
>

I think you search for a parent which has foo and the same parent has bar.
It gives:
fq={!parent which=\"type:parent\"
v=\"productname:childproduct\"}&fq={!parent which=\"type:parent\"
v=\"orderDetail:childproduct2\"}
that's the same as
fq=+{!parent which=\"type:parent\" v=\"productname:childproduct\"}
+{!parent which=\"type:parent\" v=\"orderDetail:childproduct2\"}
caveat: it yields the cross-match, as you asked: "in different child", and
a exact match as well, including those which has "in the same child".

-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhlud...@griddynamics.com>

Reply via email to