I'm working with facets in Solr and I have the concept of facet groups that each contain a number of facets.
Say I have a structure like this
Product Type
- Chairs (50)
- Tables (20)
- Mirrors (5)
Color
- Yellow (5)
- Black (50)
- Red (10)
- Orange (10)
I have an OR relationship between facets within a facet group and an AND relationship between the groups.
So if I choose Chairs
as a facet I get 50 products. Using the standard faceting in Solr (and assuming that each product can have exactly one product type and one color) it will now give:
Product Type
- Chairs (50)
- Tables (0)
- Mirrors (0)
Color
- Yellow (5)
- Black (30)
- Red (5)
- Orange (10)
However, what I really want is that the facet counts within Product Type stay the same as that would reflect what would happen if one of them was chosen.
Can this be done with Solr in one query?