code: private String createSearchResults() {
  
          String query = m_searchParams.getQuery();
          StringBuffer result = new StringBuffer();
          if (!CmsStringUtil.isEmptyOrWhitespaceOnly(query) && (query.length() > 3)) {
              CmsSearchResultView resultView = new CmsSearchResultView(getJsp());
              // proprietary workplace admin link for pagelinks of search:
              resultView.setSearchRessourceUrl(
                  getJsp().link(
                      "/system/workplace/views/admin/admin-main.jsp?path=/searchindex/singleindex/search&indexname="
                          + getSearchIndexIndex().getName()));
              m_search.init(getCms());
  
              // custom parameters (non-widget controlled)
              // these are from generated search page links
              String page = getJsp().getRequest().getParameter("searchPage");
              if (!CmsStringUtil.isEmptyOrWhitespaceOnly(page)) {
                  m_searchParams.setSearchPage(Integer.parseInt(page));
              }
              String categories = getJsp().getRequest().getParameter("searchCategories");
              if (!CmsStringUtil.isEmptyOrWhitespaceOnly(categories)) {
                  m_searchParams.setCategories(CmsStringUtil.splitAsList(categories, ','));
              }
  
              String searchRoots = getJsp().getRequest().getParameter("searchRoots");
              if (!CmsStringUtil.isEmptyOrWhitespaceOnly(searchRoots)) {
                  m_searchParams.setSearchRoots(searchRoots);
              }
              m_search.setParameters(m_searchParams);
              result.append("<div style=\"padding:12px;\">\n").append(resultView.displaySearchResult(m_search)).append(
                  "\n</div>\n");
          } else {
              // Just don't perform search
          }
          return result.toString();
      }
docs: Returns the HTML for the search results.<p>
  
  @return the HTML for the search results