Interface SearchService
- All Known Implementing Classes:
DatabaseSearchServiceImpl,SolrSearchServiceImpl
public interface SearchService
- Author:
- Andre Azzolini (apazzolini)
-
Method Summary
Modifier and TypeMethodDescriptionfindExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) Performs a search for search results in the given category, taking into consideration the SearchCriteriafindSearchResults(SearchCriteria searchCriteria) 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.use #findSearchResults(SearchCriteria)findSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) Deprecated.use #findSearchResults(SearchCriteria)findSearchResultsByQuery(String query, SearchCriteria searchCriteria) Deprecated.use #findSearchResults(SearchCriteria)getCategoryFacets(Category category) Gets all available facets for a given categoryGets all available facets for search results pagegetSearchFacets(Category category) Gets all available facets for the given category and global searchbooleanisActive()Determines whether or not the necessary configuration is in place
-
Method Details
-
findSearchResultsByCategory
@Deprecated SearchResult findSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Deprecated.use #findSearchResults(SearchCriteria)Performs 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.
- Parameters:
category-searchCriteria-- Returns:
- the result of the search
- Throws:
org.broadleafcommerce.common.exception.ServiceException- See Also:
-
findExplicitSearchResultsByCategory
SearchResult findExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Performs 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.
- Parameters:
category-searchCriteria-- Returns:
- Throws:
org.broadleafcommerce.common.exception.ServiceException- See Also:
-
findSearchResultsByQuery
@Deprecated SearchResult findSearchResultsByQuery(String query, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Deprecated.use #findSearchResults(SearchCriteria)Performs a search for search results across all categories for the given query, taking into consideration the SearchCriteria- Parameters:
query-searchCriteria-- Returns:
- the result of the search
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
findSearchResultsByCategoryAndQuery
@Deprecated SearchResult findSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Deprecated.use #findSearchResults(SearchCriteria)Performs a search for search results in the given category for the given query, taking into consideration the SearchCriteria- Parameters:
category-query-searchCriteria-- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
findSearchResults
SearchResult findSearchResults(SearchCriteria searchCriteria) throws org.broadleafcommerce.common.exception.ServiceException Performs a search for search results based on the given SearchCriteria, if SearchCriteria has a category, the category is considering for the search.- Parameters:
searchCriteria- contains the information about this given search- Returns:
- the SearchResult
- Throws:
org.broadleafcommerce.common.exception.ServiceException
-
getSearchFacets
List<SearchFacetDTO> getSearchFacets()Gets all available facets for search results page- Returns:
- the available facets
-
getSearchFacets
Gets all available facets for the given category and global search- Parameters:
category-- Returns:
-
getCategoryFacets
Gets all available facets for a given category- Parameters:
category-- Returns:
- the available facets
-
isActive
boolean isActive()Determines whether or not the necessary configuration is in place- Returns:
- whether or not the necessary configuration is in place
-