lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prasad chowdary <>
Subject How to handle nested documents in solr (SolrJ)
Date Wed, 24 May 2017 06:53:31 GMT
Dear All,

I have a requirement that I need to index the documents in solr using Java

Each document contains a sub documents like below ( Its just for
underastanding my question).

student id : 123
student name : john
marks : 
       maths: 90
       English :95

student id : 124
student name : rack
marks : 
       maths: 80
       English :96


So, as shown above each document contains one child document i.e marks.

Actaully I don't need any joins or anything.My requirement is :

if I query "English:95" ,it should return the complete document ,i.e child
along with parent like below

student id : 123
student name : john
marks : 
       maths: 90
       English :95

and also if I query "student id : 123" , it should return the whole document
same as above.

Currently I am able to get the child along with parent for child match by
using extendedResults option .

But not able to get the child for parent match.

Please help me out in this regard.Thanks in advance.

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

View raw message