The Problem
Recently, a Sitecore developer reported an issue where he could not get more than 100 values for a facet field in SXA search component. He tried updating Query.MaxItems and also XA.Foundation.Search.QueryMaxItems but still did not get more that 100 values for the facet field.
The Research
I started looking into this out of curiosity. I checked Sitecore configs and did not find any other setting which could be affecting it.
I realized soon that this was most likely something limited on SOLR side. On researching, I found out that indeed this is related to SOLR default settings. Below is the snapshot from documentation about it and more info can be found here -
The Solution
So, on your SOLR Server, edit the solrconfig.xml for the index you are using. It is found in the conf folder of your index.
Find the requesthandler you are using, for e.g. "/select", and add <str name="facet.limit">-1</str> as in snapshot below -
Repeat this for each index that you want to update. Don't forget to restart your SOLR service. Once this was done, the facets started showing 100+ values.
Hope this helps you! Thanks!!
Comments
Post a Comment