lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pranaya Behera <pranaya.beh...@igp.com>
Subject How to get parent as well as children with one query ?
Date Tue, 02 Feb 2016 06:46:24 GMT
Hi,
     I have my parent document mapped in the field named isParent: 
Boolean value. Now children has their own ids, they don't match to parent.

I am searching query.setQuery("level:0") This gives me all the parent 
documents but not the associated children.
I have looked at the 
https://cwiki.apache.org/confluence/display/solr/Other+Parsers#OtherParsers-BlockJoinQueryParsers

and 
https://cwiki.apache.org/confluence/display/solr/Transforming+Result+Documents#TransformingResultDocuments-[child]-ChildDocTransformerFactory

But I couldnt fully understand how this is to achieve. Could someone 
give one example on how to achieve in both cases ?

-- 
Thanks & Regards
Pranaya Behera


Mime
View raw message