cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Solr response giving empty value for topvalues in FacetData for one of the Facet.

940

Hi All,

Solr response giving empty results for topFacetValues for one of the Facet although the facet values are greater than 5

  • Hybris OOTB, defines the DefaultTopValuesProvider which holds the constant topFacetCount = 5. This is used for determining the number of entries that are displayed by topFacetValues ,before displaying more option for that facet type.
  • “topFacetValues” parameter contain the top 5 entries values only when “facetValues” parameter list is greater than 5, else “topFacetValues” list remains empty.
  • Based on this concept of “topFacetValues” :
  1. If topFacetValues list not empty, and value present for this field, we display the more option
  2. If list is empty, we display all the entries from “facetValues” field.

Due to some reason SOLR returning null for topFacetValues although the facet values are greater than 5 for this SIZE attribute.

Note : for same attribute(SIZE), in other Category it working correctly (topFacetValues setting to 5, As facet values count is 10)

Any leads would be appreciated

Accepted Solutions (0)

Answers (0)