public interface ISearchAndFilterMechanics extends IMechanics
Example code to get a reference to the ISearchAndFilterMechanics:
IMechanicsManager mechManager = (IMechanicsManager)PortalSystem.getMechanicsProvider();
ISearchAndFilterMechanics mech = (ISearchAndFilterMechanics)mechManager.getMechanics("wm_commonsearchresults");
Modifier and Type | Method and Description |
---|---|
ISearchQuery |
buildSearchQuery(String searchQuery)
Constructs an ISearchQuery object from the given query
string.
|
void |
freshenCachedResults()
On the next access of getCachedSearchResults method the cached
results will be ignored and the search will be performed using the
given search context and search query.
|
Collection<?> |
getCachedSearchResults(ISearchContext searchContext,
String searchQuery,
IPortletControllerBean pcb)
Perform a search using the given search context and search query.
|
Collection<?> |
getSearchResults(ISearchContext searchContext,
String searchQuery)
Perform a search using the given search context and search query.
|
Collection<?> |
getSliceableSearchResults(ISliceableSearchContext searchContext,
String searchQuery,
Map<String,?> pagingParams)
Get the search results for a sliceable search context
|
getComponentData, getComponentName, getComponentProvider, getURI, isInitialized, setComponentData, setComponentProvider
init, shutdown
Collection<?> getCachedSearchResults(ISearchContext searchContext, String searchQuery, IPortletControllerBean pcb) throws PortalException
searchContext
- the context to run the search onsearchQuery
- the query stringpcb
- the portlet controller bean where the cached search will be stored and retrievedPortalException
Collection<?> getSearchResults(ISearchContext searchContext, String searchQuery) throws PortalException
searchContext
- the context to run the search onsearchQuery
- the query stringPortalException
void freshenCachedResults()
ISearchQuery buildSearchQuery(String searchQuery)
searchQuery
- string containing all the search termsCollection<?> getSliceableSearchResults(ISliceableSearchContext searchContext, String searchQuery, Map<String,?> pagingParams) throws PortalException
searchContext
- the search contextsearchQuery
- the search querypagingParams
- the paging paramsPortalException