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 Details

  • 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 default void addQueryParts(CmsSolrQuery query)
      Deprecated.
      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 added
      cms - the current context to resolve context-specific macros.
    • updateForQueryChange

      Update the controllers state in case the term that is search for (the query as given by the user) has changed.
    • updateFromRequestParameters

      void updateFromRequestParameters(Map<String,String[]> parameters, boolean isRepeated)
      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.