Class DatabaseSearchServiceImpl

java.lang.Object
org.broadleafcommerce.core.search.service.DatabaseSearchServiceImpl
All Implemented Interfaces:
SearchService

@Deprecated @Service("blSearchService") public class DatabaseSearchServiceImpl extends Object implements SearchService
Deprecated.
  • Field Details

    • CACHE_NAME

      protected static String CACHE_NAME
      Deprecated.
    • CACHE_KEY_PREFIX

      protected static String CACHE_KEY_PREFIX
      Deprecated.
    • catalogService

      protected CatalogService catalogService
      Deprecated.
    • searchFacetDao

      protected SearchFacetDao searchFacetDao
      Deprecated.
    • fieldDao

      protected FieldDao fieldDao
      Deprecated.
    • cacheManager

      protected javax.cache.CacheManager cacheManager
      Deprecated.
    • cache

      protected javax.cache.Cache<String,List<SearchFacetDTO>> cache
      Deprecated.
  • Constructor Details

    • DatabaseSearchServiceImpl

      public DatabaseSearchServiceImpl()
      Deprecated.
  • Method Details

    • findExplicitSearchResultsByCategory

      public SearchResult findExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException
      Deprecated.
      Description copied from interface: SearchService
      Performs a search for search results in the given category, taking into consideration the SearchCriteria

      This method will NOT return search results that are in a sub-level of a given category. For example, if you had a "Routers" category and a "Enterprise Routers" sub-category, asking for search results in "Routers", would NOT return search results that are in the "Enterprise Routers" category.

      Specified by:
      findExplicitSearchResultsByCategory in interface SearchService
      Returns:
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
      See Also:
    • findSearchResultsByCategoryAndQuery

      public SearchResult findSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException
      Deprecated.
      Description copied from interface: SearchService
      Performs a search for search results in the given category for the given query, taking into consideration the SearchCriteria
      Specified by:
      findSearchResultsByCategoryAndQuery in interface SearchService
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • findSearchResultsByCategory

      public SearchResult findSearchResultsByCategory(Category category, SearchCriteria searchCriteria)
      Deprecated.
      Description copied from interface: SearchService
      Performs a search for search results in the given category, taking into consideration the SearchCriteria

      This method will return search results that are in any sub-level of a given category. For example, if you had a "Routers" category and a "Enterprise Routers" sub-category, asking for search results in "Routers", would return search results that are in the "Enterprise Routers" category.

      Specified by:
      findSearchResultsByCategory in interface SearchService
      Returns:
      the result of the search
      See Also:
    • findSearchResultsByQuery

      public SearchResult findSearchResultsByQuery(String query, SearchCriteria searchCriteria)
      Deprecated.
      Description copied from interface: SearchService
      Performs a search for search results across all categories for the given query, taking into consideration the SearchCriteria
      Specified by:
      findSearchResultsByQuery in interface SearchService
      Returns:
      the result of the search
    • findSearchResults

      public SearchResult findSearchResults(SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException
      Deprecated.
      Description copied from interface: SearchService
      Performs a search for search results based on the given SearchCriteria, if SearchCriteria has a category, the category is considering for the search.
      Specified by:
      findSearchResults in interface SearchService
      Parameters:
      searchCriteria - contains the information about this given search
      Returns:
      the SearchResult
      Throws:
      org.broadleafcommerce.common.exception.ServiceException
    • getSearchFacets

      public List<SearchFacetDTO> getSearchFacets()
      Deprecated.
      Description copied from interface: SearchService
      Gets all available facets for search results page
      Specified by:
      getSearchFacets in interface SearchService
      Returns:
      the available facets
    • getSearchFacets

      public List<SearchFacetDTO> getSearchFacets(Category category)
      Deprecated.
      Description copied from interface: SearchService
      Gets all available facets for the given category and global search
      Specified by:
      getSearchFacets in interface SearchService
      Returns:
    • getCategoryFacets

      public List<SearchFacetDTO> getCategoryFacets(Category category)
      Deprecated.
      Description copied from interface: SearchService
      Gets all available facets for a given category
      Specified by:
      getCategoryFacets in interface SearchService
      Returns:
      the available facets
    • setQualifiedKeys

      protected void setQualifiedKeys(SearchCriteria criteria)
      Deprecated.
      Perform any necessary conversion of the key to be used by the search service
      Parameters:
      criteria -
    • getDatabaseQualifiedFieldName

      protected String getDatabaseQualifiedFieldName(String qualifiedFieldName)
      Deprecated.
      From the Field's qualifiedName, build out the qualified name to be used by the ProductDao to find the requested products.
      Parameters:
      qualifiedFieldName -
      Returns:
      the database qualified name
    • setActiveFacets

      protected void setActiveFacets(List<SearchFacetDTO> facets, SearchCriteria searchCriteria)
      Deprecated.
    • buildSearchFacetDtos

      protected List<SearchFacetDTO> buildSearchFacetDtos(List<SearchFacet> categoryFacets)
      Deprecated.
      Create the wrapper DTO around the SearchFacet
      Parameters:
      categoryFacets -
      Returns:
      the wrapper DTO
    • getFacetValues

      protected List<SearchFacetResultDTO> getFacetValues(SearchFacet facet)
      Deprecated.
    • getRangeFacetValues

      protected List<SearchFacetResultDTO> getRangeFacetValues(SearchFacet facet)
      Deprecated.
    • getMatchFacetValues

      protected List<SearchFacetResultDTO> getMatchFacetValues(SearchFacet facet)
      Deprecated.
    • isActive

      public boolean isActive()
      Deprecated.
      Description copied from interface: SearchService
      Determines whether or not the necessary configuration is in place
      Specified by:
      isActive in interface SearchService
      Returns:
      whether or not the necessary configuration is in place
    • getCache

      protected javax.cache.Cache<String,List<SearchFacetDTO>> getCache()
      Deprecated.