This turned out to be a default setting with SOLR whereby the maximum number of facets to return for a given query was 100. This can be increased to a valid number as required or to unlimited with a setting of -1.
To increase the number of facets to return with a SOLR index in Sitecore, you will need to do the following.
- In the SOLR directory locate the index you wish to target.
- In my case this was the web index - which is located in C:\solr\server\solr\sc_web_index
- Inside the conf child director is a solrconfig.xml configuration file.
- The facet.limit setting needs to be edited - in my case this setting was not present
- A valid number to set a hard limit of facets to return or -1 for unlimited.
- Add or edit the setting in the following location.
- Restart the SOLR service.
<requestHandler name="/select" class="solr.SearchHandler"> <!-- default values for query parameters can be specified, these will be overridden by parameters in the request --> <lst name="defaults"> <str name="echoParams">explicit</str> <int name="rows">10</int> <str name="facet.limit">-1</str>
Note: the snippet has been cut-down, however there is enough here to see where to add the setting.
After making this change, I was now seeing all of the brand facet data that I was expecting.
After making this change, I was now seeing all of the brand facet data that I was expecting.
No comments:
Post a Comment