Class AbstractSolrSearchServiceExtensionHandler

java.lang.Object
org.broadleafcommerce.common.extension.AbstractExtensionHandler
org.broadleafcommerce.core.search.service.solr.AbstractSolrSearchServiceExtensionHandler
All Implemented Interfaces:
org.broadleafcommerce.common.extension.ExtensionHandler, SolrSearchServiceExtensionHandler
Direct Known Subclasses:
I18nSolrSearchServiceExtensionHandler

public abstract class AbstractSolrSearchServiceExtensionHandler extends org.broadleafcommerce.common.extension.AbstractExtensionHandler implements SolrSearchServiceExtensionHandler
Implementors of the SolrSearchServiceExtensionHandler interface should extend this class so that if additional extension points are added which they don't care about, their code will not need to be modified.
Author:
bpolster
  • Field Summary

    Fields inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    enabled, priority
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    addAdditionalCategoryIds(Category category, SearchCriteria searchCriteria, List<Long> categoryIds)
    Adds any additional category ids to filter by when category browsing or searching.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    attachFacet(org.apache.solr.client.solrj.SolrQuery query, String indexField, SearchFacetDTO dto)
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    attachFacet(org.apache.solr.client.solrj.SolrQuery query, String indexField, SearchFacetDTO dto, SearchCriteria searchCriteria)
    Attaches the given dto to the given query, if possible
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    attachSortField(org.apache.solr.client.solrj.SolrQuery solrQuery, String requestedSortFieldName, org.apache.solr.client.solrj.SolrQuery.ORDER order)
    Attaches the sort field, if able, to the given SolrQuery.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    Batch fetch important collections for the entire list of products in single batch fetch queries.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    buildActiveFacetFilter(FieldEntity entityType, String solrKey, String[] selectedValues, List<String> valueStrings)
    Deprecated.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    buildActiveFacetFilter(SearchFacet facet, String[] selectedValues, List<String> valueStrings)
    Builds the active facet filter query string for the given entity type and values.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    buildPrefixListForIndexField(IndexField field, FieldType fieldType, List<String> prefixList)
    Returns a prefix if required for the passed in searchable field.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    Builds the search facet ranges for the provided dto.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    getCategoryId(Category category, Long[] returnContainer)
    In certain scenarios, the requested category id might not be the one that should be used in Solr.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    Populates the List of SearchFacet's for the given Category, or else returns NOT_HANDLED
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    getPropertyNameForIndexField(IndexField field, FieldType fieldType, String prefix, org.broadleafcommerce.common.extension.ExtensionResultHolder<String> erh)
    Extension point to allow overriding the way the property name for an index field with the given field type and prefix is built.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    getQueryField(org.apache.solr.client.solrj.SolrQuery query, SearchCriteria searchCriteria, IndexFieldType indexFieldType, org.broadleafcommerce.common.extension.ExtensionResultHolder<List<String>> queryFieldsResult)
    Finds and adds the query fields for the given search field and searchable field type.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    Populated the List of searchable IndexField's that will be used in building the query fields (qf) for a Solr query.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    Populates the List of SearchFacet's, or else returns NOT_HANDLED
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    modifySearchResults(List<org.apache.solr.common.SolrDocument> responseDocuments, List<Product> products)
    Modifies the product search results from a Solr query
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    modifySolrQuery(org.apache.solr.client.solrj.SolrQuery query, String qualifiedSolrQuery, List<SearchFacetDTO> facets, SearchCriteria searchCriteria, String defaultSort)
    Provides an extension point to modify the SolrQuery.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    modifySolrQuery(SearchContextDTO context, org.apache.solr.client.solrj.SolrQuery query, String qualifiedSolrQuery, List<SearchFacetDTO> facets, SearchCriteria searchCriteria, String defaultSort)
    Provides an extension point to modify the SolrQuery.
    org.broadleafcommerce.common.extension.ExtensionResultStatusType
    setFacetResults(Map<String,SearchFacetDTO> namedFacetMap, org.apache.solr.client.solrj.response.QueryResponse response)
    Attaches any additional facet results to the namedFacetMap if they exist.

    Methods inherited from class org.broadleafcommerce.common.extension.AbstractExtensionHandler

    getPriority, isEnabled, setEnabled, setPriority

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.broadleafcommerce.common.extension.ExtensionHandler

    getPriority, isEnabled