com.ibm.commerce.catalog.facade.server.services.search.expression.solr

Class SolrSearchByCatalogFilterExpressionProvider

  • All Implemented Interfaces:
    SearchExpressionProvider


    public class SolrSearchByCatalogFilterExpressionProvider
    extends AbstractSolrSearchExpressionProvider
    implements SearchExpressionProvider
    This is a Solr specific implementation of the search expression provider for handling the search by category request. This provider helps converting an XPath expression into a Solr specific expression. The resulting Solr expression will be added back into the SelectionCriteria object for other downstream processing using the _wcf.search.internal.filterquery control parameter.
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM Copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • SolrSearchByCatalogFilterExpressionProvider

        public SolrSearchByCatalogFilterExpressionProvider(java.lang.String componentId)
        Creates an instance of the search expression provider for a particular component. This instance can be used and re-used for future search requests.
        Parameters:
        componentId - The target component.
    • Method Detail

      • invoke

        public void invoke(SelectionCriteria selectionCriteria)
                    throws java.lang.RuntimeException
        This method add the catalog filter 's search expression into control parameter.
        Specified by:
        invoke in interface SearchExpressionProvider
        Overrides:
        invoke in class AbstractSolrSearchExpressionProvider
        Parameters:
        selectionCriteria - Java representation of XPath expression
        Throws:
        java.lang.RuntimeException
        See Also:
        .SearchExpressionProvider #invoke(com.ibm.commerce.foundation.server.services .dataaccess.SelectionCriteria)