lucene-solr-user mailing list archives

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

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?

Thanks,

Y



--
View this message in context: http://lucene.472066.n3.nabble.com/How-to-return-child-documents-with-parent-tp4178081.html
Sent from the Solr - User mailing list archive at Nabble.com.

Mime
View raw message