This is what Hoss was hinting at yesterday (or was that on the Lucene list?). You can do that if you encode the hierarchy in a field properly., e.g. "/A /B /1" may be one doc's field. "/A /B /2" may be another doc's field. THen you just have to figure out how to query that to get a sub-tree.
Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ---- > From: "Jana, Kumar Raja" <kj...@ptc.com> > To: solr-user@lucene.apache.org > Sent: Thursday, December 11, 2008 5:03:02 AM > Subject: Taxonomy Support on Solr > > Hi, > > Any plans of supporting user-defined classifications on Solr? Is there > any component which returns all the children of a node (till the leaf > node) when I search for any node? > > May be this would help: > > Say I have a few SolrDocuments classified as: > > A > B--------------------------C > 1----2----3 8------9 > > (I.e A has 2 child nodes B and C. B has 3 child nodes 1,2,3 and C has 2 > child nodes 8,9) > When my search criteria matches B, my results should contain B as well > as 1,2 and 3 too. > Search for A would return all the nodes mentioned above. > > -Kumar