Hoss had a great webinar on faceting that also covered how you could
do hierarchical.
http://www.lucidimagination.com/solutions/webcasts/faceting
See "taxonomy facets", about 28 minutes in.

-Yonik
http://www.lucidimagination.com

On Wed, Dec 8, 2010 at 5:28 PM, Andy <angelf...@yahoo.com> wrote:
> I have facets that are hierarchical. For example, Location can be represented 
> as this hierarchy:
>
> Country > State > City
>
> If each document can only have a single value for each of these facets, then 
> I can just use separate fields for each facet.
>
> But if multiple values are allowed, then that approach would not work. For 
> example if a document has 2 Location values:
>
> US>CA>San Francisco
> US>MA>Boston
>
> If I just put the values "CA" & "MA" in the field "State", and "San 
> Francisco" & "Boston" in "City", facetting would not work. Someone could 
> select "CA" and the value "Boston" would be displayed for the field "City".
>
> How do I handle this use case?
>
> Thanks

Reply via email to