@Deprecated @Service(value="blSearchService") public class DatabaseSearchServiceImpl extends Object implements SearchService
Modifier and Type | Field and Description |
---|---|
protected net.sf.ehcache.Cache |
cache
Deprecated.
|
protected static String |
CACHE_KEY_PREFIX
Deprecated.
|
protected static String |
CACHE_NAME
Deprecated.
|
protected CatalogService |
catalogService
Deprecated.
|
protected FieldDao |
fieldDao
Deprecated.
|
protected SearchFacetDao |
searchFacetDao
Deprecated.
|
Constructor and Description |
---|
DatabaseSearchServiceImpl()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected List<SearchFacetDTO> |
buildSearchFacetDtos(List<SearchFacet> categoryFacets)
Deprecated.
Create the wrapper DTO around the SearchFacet
|
SearchResult |
findExplicitSearchResultsByCategory(Category category,
SearchCriteria searchCriteria)
Deprecated.
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.
|
SearchResult |
findSearchResults(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.
|
SearchResult |
findSearchResultsByCategory(Category category,
SearchCriteria searchCriteria)
Deprecated.
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.
|
SearchResult |
findSearchResultsByCategoryAndQuery(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 SearchCriteria
|
SearchResult |
findSearchResultsByQuery(String query,
SearchCriteria searchCriteria)
Deprecated.
Performs a search for search results across all categories for the given query, taking into consideration
the SearchCriteria
|
List<SearchFacetDTO> |
getCategoryFacets(Category category)
Deprecated.
Gets all available facets for a given category
|
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.
|
protected List<SearchFacetResultDTO> |
getFacetValues(SearchFacet facet)
Deprecated.
|
protected List<SearchFacetResultDTO> |
getMatchFacetValues(SearchFacet facet)
Deprecated.
|
protected List<SearchFacetResultDTO> |
getRangeFacetValues(SearchFacet facet)
Deprecated.
|
List<SearchFacetDTO> |
getSearchFacets()
Deprecated.
Gets all available facets for search results page
|
List<SearchFacetDTO> |
getSearchFacets(Category category)
Deprecated.
Gets all available facets for the given category and global search
|
void |
rebuildIndex()
Deprecated.
This method delegates to
SolrIndexService.rebuildIndex() . |
protected void |
setActiveFacets(List<SearchFacetDTO> facets,
SearchCriteria searchCriteria)
Deprecated.
|
protected void |
setQualifiedKeys(SearchCriteria criteria)
Deprecated.
Perform any necessary conversion of the key to be used by the search service
|
protected CatalogService catalogService
protected SearchFacetDao searchFacetDao
protected FieldDao fieldDao
protected static String CACHE_NAME
protected static String CACHE_KEY_PREFIX
protected net.sf.ehcache.Cache cache
public SearchResult findExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws ServiceException
SearchService
findExplicitSearchResultsByCategory
in interface SearchService
ServiceException
SearchService.findSearchResultsByCategory(Category, SearchCriteria)
public SearchResult findSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) throws ServiceException
SearchService
findSearchResultsByCategoryAndQuery
in interface SearchService
ServiceException
public SearchResult findSearchResultsByCategory(Category category, SearchCriteria searchCriteria)
SearchService
findSearchResultsByCategory
in interface SearchService
SearchService.findExplicitSearchResultsByCategory(Category, SearchCriteria)
public SearchResult findSearchResultsByQuery(String query, SearchCriteria searchCriteria)
SearchService
findSearchResultsByQuery
in interface SearchService
public SearchResult findSearchResults(SearchCriteria searchCriteria) throws ServiceException
SearchService
findSearchResults
in interface SearchService
searchCriteria
- contains the information about this given searchServiceException
public List<SearchFacetDTO> getSearchFacets()
SearchService
getSearchFacets
in interface SearchService
public List<SearchFacetDTO> getSearchFacets(Category category)
SearchService
getSearchFacets
in interface SearchService
public List<SearchFacetDTO> getCategoryFacets(Category category)
SearchService
getCategoryFacets
in interface SearchService
protected void setQualifiedKeys(SearchCriteria criteria)
criteria
- protected String getDatabaseQualifiedFieldName(String qualifiedFieldName)
qualifiedFieldName
- protected void setActiveFacets(List<SearchFacetDTO> facets, SearchCriteria searchCriteria)
protected List<SearchFacetDTO> buildSearchFacetDtos(List<SearchFacet> categoryFacets)
categoryFacets
- protected List<SearchFacetResultDTO> getFacetValues(SearchFacet facet)
protected List<SearchFacetResultDTO> getRangeFacetValues(SearchFacet facet)
protected List<SearchFacetResultDTO> getMatchFacetValues(SearchFacet facet)
public void rebuildIndex()
SearchService
SolrIndexService.rebuildIndex()
. It is here to preserve backwards-compatibility
with sites that were originally configured to run Broadleaf with Solr before 2.2.0.rebuildIndex
in interface SearchService
Copyright © 2020. All rights reserved.