code: private String createCategorySearchResultHtml() {
  
          StringBuffer result = new StringBuffer();
          if (m_searchParams.isCalculateCategories()) {
              // trigger calculation of categories, even if we don't need search results
              // this is cached unless more set operation on CmsSearch are performed
              Map<String, Integer> categoryMap = m_search.getSearchResultCategories();
              if (categoryMap != null) {
                  result.append(dialogContentStart(null));
                  result.append(result.append(createWidgetTableStart()));
                  // first block "Query for index...."
                  result.append(
                      dialogBlockStart(
                          key(
                              Messages.GUI_LABEL_SEARCHINDEX_BLOCK_SEARCH_CATEGORIES_1,
                              new Object[] {m_searchParams.getQuery()})));
                  result.append(createWidgetTableStart());
  
                  // categories:
                  result.append("\n<p>\n");
                  for (Map.Entry<String, Integer> entry : categoryMap.entrySet()) {
                      result.append("  ").append("<a class=\"searchcategory\" href=\"#\" onClick=\"filterCategory('");
                      result.append(entry.getKey()).append("')\")>");
                      result.append(entry.getKey());
                      result.append("</a> : ");
                      result.append(entry.getValue()).append("<br>\n");
                  }
                  result.append("</p>\n");
  
                  result.append(createWidgetTableEnd());
                  result.append(dialogBlockEnd());
                  result.append(createWidgetTableEnd());
                  result.append(dialogContentEnd());
              }
          }
          return result.toString();
      }
docs: Returns the hmtl for the category search results.<p>
  
  Note that a valid search (<code>{@link CmsSearch#getSearchResult()}</code> with
  correct settings and inited) has to be triggered before this call or an empty
  String will be returned. <p>
  
  @return the hmtl for the category search results