I'm not sure if this is possible, but I would like to be able to control the counts returned for faces more closely than just including and excluding.
In particular, I have an interface that allows users to filter "facetA" and "facetB". It's a bit like this
Filter by
- facetA: article (20), image (6), activity (14)
- facetB: cats (23), dogs (12), hedgehogs (5)
The interface makes it clear that facetA is higher in the hierarchy than facetB. I would like facetA to be considered fully persistent, and facetB is also considered permanent, but depends on the choice of facetA.
Thus, the interface can respond to facetB changes with:
Filter by
- facetA: article (20), image (6), activity (14)
- facetB: cats (23), dogs (12), hedgehogs (5)
i.e. none of the readings changes.
But he would respond to a change to facetA as follows:
Filter by
- facetA: article (20) , image (6), activity (14)
- facetB: cats (15), dogs (4), hedgehogs (1)
ie, facetB counts the change to reflect what is available after applying the facetA filter.
Just do
& facet.field = {! ex = dt} fieldA & facet.field = {! ex = dt} fieldB
does not reach what I want, but he is close. I find that the instructions on this are very vague in the solr quiz - for example, I donβt even know what βdtβ means. Can anyone clarify? Can I get more control over how exceptions are calculated?