I'm trying to implement facets for my Solr service, but I'm a bit confused as to what I'm seeing. I understand that Tags and Exclusions are used to ignore specific filter counts, such that something like this would happen:
[] Nike 55
[] Adidas 54
[] New Balance 32
[] Black 25
[] Blue 26
[] Red 29
[] Yellow 23
---------------
[X] Nike 55
[] Adidas 54
[] New Balance 32
[] Black 20
[] Blue 15
[] Red 13
[] Yellow 13
[X] Nike 20
[] Adidas 0
[] New Balance 0
[X] Black 20
[] Blue 15
[] Red 13
[] Yellow 13
I understand that in the above case, we would filter on brand for the Solr query, and pass in a tag/exclusion on the brand filter/facet for the counts to remain the same only on brand. Then, we filter by color, and keep THOSE counts the same while letting the other counts (Brand) change.
However, here is where I get stuck. On larger sites (like Newegg, Amazon, etc...) I notice that this is NOT the case. When I select by my first filter, the filter counts I selected do not change, while the other counts do.
[X] Nike 51
[] Adidas 54
[] New Balance 32
[] Black 20
[] Blue 15
[] Red 13
[] Yellow 13
Then, when I select by the second filter (different from the first), the second filter counts don't change, but the first filter counts change in a way that doesn't zero out the counts, like so:
[X] Nike 8
[] Adidas 12
[] New Balance 5
[X] Black 20
[] Blue 15
[] Red 13
[] Yellow 13
What is happening here? I feel like I'm sending in facets and filters to solr incorrectly. I only send in the tag and exclusion for the most recently selected filter. That always changes other counts based on the most recent selection. But in the last case I outlined, the brand filter didn't zero out even though I'm only searching for Black Nike shoes; I still get prospective counts for Adidas and New Balance. Sorry this post is so long, but I couldn't think of a good way to explain it without examples.