public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
ProductSearchResult |
findExplicitProductsByCategory(Category category,
ProductSearchCriteria searchCriteria)
Performs a search for products in the given category, taking into consideration the ProductSearchCriteria
This method will NOT return products that are in a sub-level of a given category.
|
ProductSearchResult |
findProductsByCategory(Category category,
ProductSearchCriteria searchCriteria)
Performs a search for products in the given category, taking into consideration the ProductSearchCriteria
This method will return products that are in any sub-level of a given category.
|
ProductSearchResult |
findProductsByCategoryAndQuery(Category category,
String query,
ProductSearchCriteria searchCriteria)
Performs a search for products in the given category for the given query, taking into consideration
the ProductSearchCriteria
|
ProductSearchResult |
findProductsByQuery(String query,
ProductSearchCriteria searchCriteria)
Performs a search for products across all categories for the given query, taking into consideration
the ProductSearchCriteria
|
List<SearchFacetDTO> |
getCategoryFacets(Category category)
Gets all available facets for a given category
|
List<SearchFacetDTO> |
getSearchFacets()
Gets all available facets for search results page
|
void |
rebuildIndex()
This method delegates to
SolrIndexService.rebuildIndex(). |
void rebuildIndex()
throws ServiceException,
IOException
SolrIndexService.rebuildIndex(). It is here to preserve backwards-compatibility
with sites that were originally configured to run Broadleaf with Solr before 2.2.0.ServiceExceptionIOExceptionProductSearchResult findProductsByCategory(Category category, ProductSearchCriteria searchCriteria) throws ServiceException
category - searchCriteria - ServiceExceptionfindExplicitProductsByCategory(Category, ProductSearchCriteria)ProductSearchResult findExplicitProductsByCategory(Category category, ProductSearchCriteria searchCriteria) throws ServiceException
category - searchCriteria - ServiceExceptionfindProductsByCategory(Category, ProductSearchCriteria)ProductSearchResult findProductsByQuery(String query, ProductSearchCriteria searchCriteria) throws ServiceException
query - searchCriteria - ServiceExceptionProductSearchResult findProductsByCategoryAndQuery(Category category, String query, ProductSearchCriteria searchCriteria) throws ServiceException
category - query - searchCriteria - ServiceExceptionList<SearchFacetDTO> getSearchFacets()
List<SearchFacetDTO> getCategoryFacets(Category category)
category - Copyright © 2014. All Rights Reserved.