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

Class SolrRESTSearchByKeywordRelevancyExpressionProvider

  • All Implemented Interfaces:
    SearchExpressionProvider
    Direct Known Subclasses:
    SolrSearchByKeywordRelevancyExpressionProvider


    public class SolrRESTSearchByKeywordRelevancyExpressionProvider
    extends SolrRESTSearchByKeywordExpressionProvider
    This is a Solr specific implementation of the search expression provider for handling the search by keyword request using dismax query parser. The resulting Solr expression will be added back into the SelectionCriteria object for other downstream processing using the _wcf.search.internal.optional.query control parameter.
    • Constructor Detail

      • SolrRESTSearchByKeywordRelevancyExpressionProvider

        public SolrRESTSearchByKeywordRelevancyExpressionProvider(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
        Description copied from class: AbstractSolrSearchExpressionProvider
        (non-Javadoc)
        Specified by:
        invoke in interface SearchExpressionProvider
        Overrides:
        invoke in class SolrRESTSearchByKeywordExpressionProvider
        Parameters:
        selectionCriteria - Java representation of XPath expression
        Throws:
        java.lang.RuntimeException
        See Also:
        com.ibm.commerce.catalog.facade.server.services.SolrRESTSearchByKeywordExpressionProvider.expression.solr.SolrSearchByKeywordExpressionProvider#invoke(com.ibm.commerce.foundation.server.services.dataaccess.SelectionCriteria)