I have stored following documents in my solr schema.Just to tell in brief about the schema, the schema is about teacher, course and their relationship.Example data :|ID| Name| Type | FromID | ToID ||1 | t1 | Teacher | | ||2 | t2 | Teacher | | ||3 | c1 | Course | | ||4 | c2 | Course | | ||5 | c3 | Course | | ||6 | r1 | Relation| 1 | 3 ||7 | r2 | Relation| 1 | 4 ||8 | r3 | Relation| 2 | 3 ||9 | r4 | Relation| 1 | 5 ||10| r5 | Relation| 2 | 5 |I want the output to be some thing like this.|ID| Name| Type | Handles | Handled By ||1 | t1 | Teacher | c1,c2,c3 | ||2 | t2 | Teacher | c1,c3 | ||3 | c1 | Course | | t1,t2 ||4 | c2 | Course | | t1 ||5 | c3 | Course | | t1,t2 |Can we do this in one query ?I tried I couldn't. So I thought we will get records like this first.|ID| Name| Type | |1 | t1 | Teacher | |2 | t2 | Teacher | |3 | c1 | Course | |4 | c2 | Course | |5 | c3 | Course | Then for each document, get appropriate relation documents and convert them to CSV.So I started writing custom search component as "last-components" for the search handler.I was able to fetch the result as above.But not able to proceed further that would make more calls to get relations.Can any one give some code snippet or something that will do SOLR call with JOIN query from custom search component.Thanks~Ashok
-- View this message in context: http://lucene.472066.n3.nabble.com/Writing-SOLR-custom-search-component-to-search-SOLR-to-fetch-more-documents-tp4021598.html Sent from the Solr - User mailing list archive at Nabble.com.