SAP Knowledge Base Article - Preview

2116291 - Solr Grouping results in incorrect facet count


Solr provides ability to group results by using the Result Grouping feature in Solr.

This feature is available in hybris and is used in the DefaultFacetSearchService.

When facets are displayed or retrieved based on grouping the facet counts are for the group.
But when a facet is applied the fq (filter query) gets applied before the grouping is performed.
As the current applied facets are not refreshed the count of facets and the result would never match.

**Image/data in this KBA is from SAP internal systems, sample data, or demo systems. Any resemblance to real data is purely coincidental.**



Extension: solrfacetsearch


SAP hybris Commerce Suite 5.2 ; SAP hybris Commerce Suite 5.3 ; SAP hybris Commerce Suite 5.4 ; hybris Commerce Suite 5.1


KBA , CEC-COM-CPS-WEB , Store frontend, Web CMS, Accelerators , CEC-COM-CPS-SER , Search , Product Enhancement

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.