Class TmaSearchPageController

    • Constructor Detail

      • TmaSearchPageController

        public TmaSearchPageController()
    • Method Detail

      • textSearch

        @RequestMapping(method=GET,
                        params="!q")
        public java.lang.String textSearch​(@RequestParam(value="text",defaultValue="")
                                           java.lang.String searchText,
                                           javax.servlet.http.HttpServletRequest request,
                                           org.springframework.ui.Model model)
                                    throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • refineSearch

        @RequestMapping(method=GET,
                        params="q")
        public java.lang.String refineSearch​(@RequestParam("q")
                                             java.lang.String searchQuery,
                                             @RequestParam(value="page",defaultValue="0")
                                             int page,
                                             @RequestParam(value="show",defaultValue="Page")
                                             AbstractSearchPageController.ShowMode showMode,
                                             @RequestParam(value="sort",required=false)
                                             java.lang.String sortCode,
                                             @RequestParam(value="text",required=false)
                                             java.lang.String searchText,
                                             javax.servlet.http.HttpServletRequest request,
                                             org.springframework.ui.Model model)
                                      throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • getFacets

        @ResponseBody
        @RequestMapping(value="/facets",
                        method=GET)
        public FacetRefinement<SearchStateData> getFacets​(@RequestParam("q")
                                                          java.lang.String searchQuery,
                                                          @RequestParam(value="page",defaultValue="0")
                                                          int page,
                                                          @RequestParam(value="show",defaultValue="Page")
                                                          AbstractSearchPageController.ShowMode showMode,
                                                          @RequestParam(value="sort",required=false)
                                                          java.lang.String sortCode)
      • getAutocompleteSuggestions

        @ResponseBody
        @RequestMapping(value="/autocomplete/{componentUid:.*}",
                        method=GET)
        public AutocompleteResultData getAutocompleteSuggestions​(@PathVariable
                                                                 java.lang.String componentUid,
                                                                 @RequestParam("term")
                                                                 java.lang.String term)
                                                          throws de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
        Throws:
        de.hybris.platform.cms2.exceptions.CMSItemNotFoundException
      • subList

        protected <E> java.util.List<E> subList​(java.util.List<E> list,
                                                int maxElements)
      • updatePageTitle

        protected void updatePageTitle​(java.lang.String searchText,
                                       org.springframework.ui.Model model)