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

Class SolrSearchIndexNameValidator

  • All Implemented Interfaces:
    SearchExpressionProvider


    public class SolrSearchIndexNameValidator
    extends AbstractSolrSearchExpressionProvider
    implements SearchExpressionProvider

    This is a Solr specific implementation of the search expression validator for the search index name. This is done by:

    1. checking if _wcf.search.index is passed in as part of the expression;
    2. if not, then look up the core name from the given search profile;
    3. otherwise, try to derive the core name by making use of the store ID to determine the master catalog ID and the locale name.

    The resulting Solr index name will be added back into the SelectionCriteria object for other downstream processing.