Would this approach be an answer? https://lucidworks.com/blog/easy-hierarchical-faceting-and-display-with-solr-and-jquery-and-a-tiny-bit-of-python/
Regards, Alex. Personal: http://www.outerthoughts.com/ and @arafalov Solr resources and newsletter: http://www.solr-start.com/ and @solrstart Solr popularizers community: https://www.linkedin.com/groups?gid=6713853 On 16 November 2014 20:36, rashmy1 <rashmy.appanerava...@siemens.com> wrote: > Thank you Evan and Oleg. > > This is exactly what I had implemented (Option 2). > My issue is > > Evan Pease wrote >> Then, in your Solr query, you can simply add: >> >> &facet=true >> &facet.field=category >> >> You should see a facet that contains each level of the taxonomy with >> counts. > > As you mentioned, we get each level of the taxonomy while I'd like to do > drill down query. > > For example, if the Solr query was: > &facet=true > &facet.field=category > > My intention is to get just the first level as results: > NonFic (8) > Fic (3) > > Then if user clicks on 'NonFic' in UI, we want to fetch only the next > immediate level: > NonFic > Hist (2) > Sci (6) > > Then if user clicks on 'Sci' in UI, we want to fetch only the next immediate > level: > NonFic > Sci > Phy(4) > Chem(1) > Math(1) > > Myabe I can still use PathHierarchyTokenizer, but could you let me know how > to form my facet query to fetch the results one level at a time. > > Thanks! > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Hierarchical-faceting-tp4169263p4169413.html > Sent from the Solr - User mailing list archive at Nabble.com.