plone / volto

React-based frontend for the Plone Content Management System
https://demo.plone.org/
MIT License
442 stars 596 forks source link

Search Block: count results per facet #4766

Open avoinea opened 1 year ago

avoinea commented 1 year ago

In eea.facetednavigation we had a feature that would allow one to enable/disable result count per facet. This is also a major feature of modern search solutions like ElasticSearch or Solr.

Would be great to be able to enable counting per facet within Volto Search Block.

For this we will need:

SOLR API: https://solr.apache.org/guide/8_1/json-facet-api.html#bucketing-facet-example ES API: https://www.elastic.co/guide/en/app-search/current/facets.html

Plone Classic Faceted Navigation counter implementation:

Faceted navigation example from Plone Classic:

Screenshot 2023-05-15 at 11 21 22

erral commented 1 year ago

cc: @ionlizarazu

sneridagh commented 11 months ago

@avoinea what's the status for this one? It's ok to slate it for 18?

avoinea commented 11 months ago

@sneridagh AFAIK there is no progress on it lately. Thus, I think it's safer to move it to 18.x. cc @razvanMiu

davisagli commented 11 months ago

@sneridagh This is currently more of a proof-of-concept. It should wait for 18. Ideally, we should improve the API in ZCatalog/plone.app.querystring so that we don't have to duplicate code from them.

FarooqAlaulddin commented 9 months ago

Any updates on this feature? Any advice of how to temporality support it?

avoinea commented 9 months ago

@FarooqAlaulddin There is an open PR on plone.restapi https://github.com/plone/plone.restapi/pull/1637 that has to be refactored and move code upstream directly in ZCatalog and plone.app.querystring as @davisagli suggested :wink:

FarooqAlaulddin commented 3 months ago

For anyone looking to add this feature prior to the official releases, you need:

Backend Support:

Volto: