Interface I_CmsSearchController
- All Known Subinterfaces:
I_CmsSearchControllerCommon
,I_CmsSearchControllerDidYouMean
,I_CmsSearchControllerFacetField
,I_CmsSearchControllerFacetQuery
,I_CmsSearchControllerFacetRange
,I_CmsSearchControllerFacetsField
,I_CmsSearchControllerFacetsRange
,I_CmsSearchControllerGeoFilter
,I_CmsSearchControllerHighlighting
,I_CmsSearchControllerMain
,I_CmsSearchControllerPagination
,I_CmsSearchControllerSorting
- All Known Implementing Classes:
CmsSearchController
,CmsSearchControllerCommon
,CmsSearchControllerDidYouMean
,CmsSearchControllerFacetField
,CmsSearchControllerFacetQuery
,CmsSearchControllerFacetRange
,CmsSearchControllerFacetsField
,CmsSearchControllerFacetsRange
,CmsSearchControllerGeoFilter
,CmsSearchControllerHighlighting
,CmsSearchControllerPagination
,CmsSearchControllerSorting
public interface I_CmsSearchController
Interface all search controllers must implement. It consists of methods for query generation and state updates.
-
Field Summary
Modifier and TypeFieldDescriptionSolr query params that can have only one value. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParametersForCurrentState
(Map<String, String[]> parameters) Add the request parameters that reflect the controllers current state (useful for link generation outside of a form).default void
addQueryParts
(CmsSolrQuery query) Deprecated.void
addQueryParts
(CmsSolrQuery query, CmsObject cms) Generate the Solr query part specific for the controller, e.g., the part for a field facet.void
Update the controllers state in case the term that is search for (the query as given by the user) has changed.void
updateFromRequestParameters
(Map<String, String[]> parameters, boolean isRepeated) Update the controllers state from the given request parameters.
-
Field Details
-
SET_VARIABLES
Solr query params that can have only one value.
-
-
Method Details
-
addParametersForCurrentState
Add the request parameters that reflect the controllers current state (useful for link generation outside of a form).- Parameters:
parameters
- The request parameters reflecting the controllers currents state.
-
addQueryParts
Deprecated.useaddQueryParts(CmsSolrQuery, CmsObject)
instead.Generate the Solr query part specific for the controller, e.g., the part for a field facet.- Parameters:
query
- A, possibly empty, query, where further query parts are added
-
addQueryParts
Generate the Solr query part specific for the controller, e.g., the part for a field facet.- Parameters:
query
- A, possibly empty, query, where further query parts are addedcms
- the current context to resolve context-specific macros.
-
updateForQueryChange
void updateForQueryChange()Update the controllers state in case the term that is search for (the query as given by the user) has changed. -
updateFromRequestParameters
Update the controllers state from the given request parameters.- Parameters:
parameters
- The request parameters.isRepeated
- a flag, indicating, if the search is performed repeatedly, opposed to entering the search page for the first time.
-
addQueryParts(CmsSolrQuery, CmsObject)
instead.