public interface SearchService
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
findExplicitSearchResultsByCategory(Category category,
SearchCriteria searchCriteria)
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 |
findSearchResultsByCategory(Category category,
SearchCriteria searchCriteria)
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)
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)
Performs a search for search results across all categories for the given query, taking into consideration
the SearchCriteria
|
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.ServiceExceptionIOExceptionSearchResult findSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws ServiceException
category - searchCriteria - ServiceExceptionfindExplicitSearchResultsByCategory(Category, SearchCriteria)SearchResult findExplicitSearchResultsByCategory(Category category, SearchCriteria searchCriteria) throws ServiceException
category - searchCriteria - ServiceExceptionfindSearchResultsByCategory(Category, SearchCriteria)SearchResult findSearchResultsByQuery(String query, SearchCriteria searchCriteria) throws ServiceException
query - searchCriteria - ServiceExceptionSearchResult findSearchResultsByCategoryAndQuery(Category category, String query, SearchCriteria searchCriteria) throws ServiceException
category - query - searchCriteria - ServiceExceptionList<SearchFacetDTO> getSearchFacets()
List<SearchFacetDTO> getCategoryFacets(Category category)
category - Copyright © 2017. All rights reserved.