Tuesday, October 16, 2012

Solr Search : Facet Configuration

SOLR Search:

By default Solr facet sorting is configured by facet product count. We can modify the facet configuration by modifying WC-SEARCH.XML file. wc-search.xml file contains the basic configuration for facets and search related.

The configuration change for the facet sort by index instead of count.


Locate the following snippet from that file.
     <_config:param name="sort" value="count"/>

The facets needs to be sorted alphabetically. So Sort option changed from count to index.
    <_config:param name="sort" value="index"/>

Save the changes.