lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajesh <>
Subject Querying parent with multiple child documents
Date Mon, 22 Dec 2014 11:16:59 GMT

I've a document which has multiple child documents associated with it and
child documents are from different table(Both contain different fields)
mentioned below. I can query the parent and child document with a OR
condition between these two child records. Is there a way how I can specify
AND condition between the two child records to retrieve the parent?

My sample doc. structure:

OR query between child docs.
fq = {!parent which=\"type:parent\" v=\"productname:childproduct OR
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.

View this message in context:
Sent from the Solr - User mailing list archive at

View raw message