We have noticed, that the facet calculations are wrong. The bug can be observed when using OR facets on the following site:
- Select Ash (6) from the Species facet
- Notice that the Thickness facet is now narrowed to 4 options (originally there were 9) and of those 4 options - the total results add up to 6. This operates as expected. Because there were only 6 results for Ash, any of the remaining facets should not exceed matches for more than 6 results.
- But if you look at the other facets, the Category, Quality, and Cutting Style options are not narrowed. In fact, "Figured" in the Category facet shows 108 results available.
The order in which the facets are returned from
DefaultFacetManager::getEnabledFacets is the order in which the facets are processed and the count is being added.