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