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.

Reply via email to