lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yliu <>
Subject How to return child documents with parent
Date Thu, 08 Jan 2015 14:53:16 GMT

What is the best way to return both parent document and child documents in
one query?  I used SolrJ to create a document and added a few child
documents using addChildDocuments() method and indexed the parent document. 
All documents are indexed successfully (parent and children).  

When I tried to retrieve the parent document along with the child documents. 
I used expand=true&expand.field=_root_.  I was able to get the parent back
in "result" section and children in "expandedResults" section.  Is there
some other type of query I should use so I can get the child documents back
as children instead of expanded result?



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

View raw message