I've just discovered Solr and realized its potential! My main interest is in Solr's fledgling support for faceted search.

Are there any ideas on how to support hierarchical facets?

Take a facet like 'Location' for example. This can be thought of as hierarchical because you could let the user select a path through the hierarchy like: -

 United States> Massachusetts> Boston


I suppose you could use the CNET approach of storing a Meta document for each facet and then define three facets called Country, State and City and set things up so that if the Country facet is selected the State facet is displayed. This sounds workable (but long winded) and you'd have the extra problem that someone selecting 'London' from the City facet may get documents from both Canada and England etc.

David Legg

Reply via email to