com.ibm.commerce.foundation.server.services.rest.search.expression.solr

Class SolrRESTSearchByFacetExpressionProvider

  • All Implemented Interfaces:
    SearchExpressionProvider
    Direct Known Subclasses:
    SolrSearchByFacetExpressionProvider


    public class SolrRESTSearchByFacetExpressionProvider
    extends AbstractSolrSearchExpressionProvider
    implements SearchExpressionProvider
    This is a Solr specific implementation of the search expression provider for handling the search by facet request. It adds additional facets when provided through _wcf.search.facet and skips those facets defined in this exclude list, _wcf.search.exclude.facet. The resulting Solr expression will be added back into the SelectionCriteria object (_wcf.search.internal.meta) and to be encoded into the meta string (_wcf.search.meta) later on. Note that the facet conditions should be passed in with a separator using SolrSearchServiceConstants.FACET_SEPERATOR.