Checkbox Counter in facets #3254
-
Hello everyone, I would like to know if there is a way similar to the one available in facets to have a counter. For example, I can do:
and this, like always, shows a counter. However,
does not display the corresponding counter. Thank you for any feedback. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
@FrancescoBrunoDev, the challenge here is that checkbox filters support complex queries, whereas other filters use simple values. Solr provides counts for basic facets, but in order to get counts for checkbox filters, we would need to perform additional Solr requests or restructure the way we are currently requesting the data from Solr. This is certainly not impossible, but it would come with performance costs. I believe it is possible that someone somewhere has already implemented this as a local customization. I will highlight this discussion link on the vufind-tech mailing list to see if anyone there has anything to share. I'm also open to adding this feature in the future if we can find a reasonably straightforward and efficient way to accomplish it. |
Beta Was this translation helpful? Give feedback.
-
As @demiankatz said, the count of Facets is included in the result of a search, whereras the checkbox filters are Filters which are set before a search and therefore have no count. Afaik only solution is subsearches after each search. |
Beta Was this translation helpful? Give feedback.
-
That'd be me, I guess. :) References, with the caveat that this indeed only works for simple
|
Beta Was this translation helpful? Give feedback.
@FrancescoBrunoDev, the challenge here is that checkbox filters support complex queries, whereas other filters use simple values. Solr provides counts for basic facets, but in order to get counts for checkbox filters, we would need to perform additional Solr requests or restructure the way we are currently requesting the data from Solr. This is certainly not impossible, but it would come with performance costs.
I believe it is possible that someone somewhere has already implemented this as a local customization. I will highlight this discussion link on the vufind-tech mailing list to see if anyone there has anything to share.
I'm also open to adding this feature in the future if we can fi…