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 Summary
FieldsModifier and TypeFieldDescriptionprotected javax.cache.Cache<String,List<SearchFacetDTO>> Deprecated.protected static StringDeprecated.protected static StringDeprecated.protected javax.cache.CacheManagerDeprecated.protected CatalogServiceDeprecated.protected FieldDaoDeprecated.protected SearchFacetDaoDeprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<SearchFacetDTO>buildSearchFacetDtos(List<SearchFacet> categoryFacets) Deprecated.Create the wrapper DTO around the SearchFacetfindExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) Deprecated.Performs a search for search results in the given category, taking into consideration the SearchCriteriafindSearchResults(SearchCriteria searchCriteria) Deprecated.Performs a search for search results based on the given SearchCriteria, if SearchCriteria has a category, the category is considering for the search.findSearchResultsByCategory(Category category, SearchCriteria searchCriteria) Deprecated.Performs a search for search results in the given category, taking into consideration the SearchCriteriafindSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) Deprecated.Performs a search for search results in the given category for the given query, taking into consideration the SearchCriteriafindSearchResultsByQuery(String query, SearchCriteria searchCriteria) Deprecated.Performs a search for search results across all categories for the given query, taking into consideration the SearchCriteriaprotected javax.cache.Cache<String,List<SearchFacetDTO>> getCache()Deprecated.getCategoryFacets(Category category) Deprecated.Gets all available facets for a given categoryprotected StringgetDatabaseQualifiedFieldName(String qualifiedFieldName) Deprecated.From the Field's qualifiedName, build out the qualified name to be used by the ProductDao to find the requested products.protected List<SearchFacetResultDTO>getFacetValues(SearchFacet facet) Deprecated.protected List<SearchFacetResultDTO>getMatchFacetValues(SearchFacet facet) Deprecated.protected List<SearchFacetResultDTO>getRangeFacetValues(SearchFacet facet) Deprecated.Deprecated.Gets all available facets for search results pagegetSearchFacets(Category category) Deprecated.Gets all available facets for the given category and global searchbooleanisActive()Deprecated.Determines whether or not the necessary configuration is in placeprotected voidsetActiveFacets(List<SearchFacetDTO> facets, SearchCriteria searchCriteria) Deprecated.protected voidsetQualifiedKeys(SearchCriteria criteria) Deprecated.Perform any necessary conversion of the key to be used by the search service
-
Field Details
-
CACHE_NAME
Deprecated. -
CACHE_KEY_PREFIX
Deprecated. -
catalogService
Deprecated. -
searchFacetDao
Deprecated. -
fieldDao
Deprecated. -
cacheManager
protected javax.cache.CacheManager cacheManagerDeprecated. -
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:SearchServicePerforms a search for search results in the given category, taking into consideration the SearchCriteriaThis 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:
findExplicitSearchResultsByCategoryin interfaceSearchService- 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:SearchServicePerforms a search for search results in the given category for the given query, taking into consideration the SearchCriteria- Specified by:
findSearchResultsByCategoryAndQueryin interfaceSearchService- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
findSearchResultsByCategory
Deprecated.Description copied from interface:SearchServicePerforms a search for search results in the given category, taking into consideration the SearchCriteriaThis 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:
findSearchResultsByCategoryin interfaceSearchService- Returns:
- the result of the search
- See Also:
-
findSearchResultsByQuery
Deprecated.Description copied from interface:SearchServicePerforms a search for search results across all categories for the given query, taking into consideration the SearchCriteria- Specified by:
findSearchResultsByQueryin interfaceSearchService- Returns:
- the result of the search
-
findSearchResults
public SearchResult findSearchResults(SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Deprecated.Description copied from interface:SearchServicePerforms a search for search results based on the given SearchCriteria, if SearchCriteria has a category, the category is considering for the search.- Specified by:
findSearchResultsin interfaceSearchService- Parameters:
searchCriteria- contains the information about this given search- Returns:
- the SearchResult
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
getSearchFacets
Deprecated.Description copied from interface:SearchServiceGets all available facets for search results page- Specified by:
getSearchFacetsin interfaceSearchService- Returns:
- the available facets
-
getSearchFacets
Deprecated.Description copied from interface:SearchServiceGets all available facets for the given category and global search- Specified by:
getSearchFacetsin interfaceSearchService- Returns:
-
getCategoryFacets
Deprecated.Description copied from interface:SearchServiceGets all available facets for a given category- Specified by:
getCategoryFacetsin interfaceSearchService- Returns:
- the available facets
-
setQualifiedKeys
Deprecated.Perform any necessary conversion of the key to be used by the search service- Parameters:
criteria-
-
getDatabaseQualifiedFieldName
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
Deprecated. -
buildSearchFacetDtos
Deprecated.Create the wrapper DTO around the SearchFacet- Parameters:
categoryFacets-- Returns:
- the wrapper DTO
-
getFacetValues
Deprecated. -
getRangeFacetValues
Deprecated. -
getMatchFacetValues
Deprecated. -
isActive
public boolean isActive()Deprecated.Description copied from interface:SearchServiceDetermines whether or not the necessary configuration is in place- Specified by:
isActivein interfaceSearchService- Returns:
- whether or not the necessary configuration is in place
-
getCache
Deprecated.
-
SolrSearchServiceImpl