docs: @Override
      protected String createDialogHtml(String dialog) {
  
          // check if the configured search index exists
          I_CmsSearchIndex index = getIndex();
          if (index == null) {
              throw new CmsIllegalStateException(
                  Messages.get().container(
                      Messages.ERR_INDEX_INVALID_1,
                      getSettings().getUserSettings().getWorkplaceSearchIndexName()));
          }
  
          StringBuffer result = new StringBuffer(1024);
  
          // create widget table
          result.append(createWidgetTableStart());
  
          // show error header once if there were validation errors
          result.append(createWidgetErrorHeader());
  
          if (dialog.equals(PAGES[0])) {
              // content
              result.append(createWidgetBlockStart(key(Messages.GUI_SEARCH_QUERY_TITLE_0)));
              result.append(createDialogRowsHtml(0, 3));
              result.append(createWidgetBlockEnd());
              // fields for limiting time ranges
              // result.append(createWidgetBlockStart(key(Messages.GUI_SEARCH_TIME_RANGES_0)));
              // result.append(createDialogRowsHtml(4, 7));
              // result.append(createWidgetBlockEnd());
              result.append(createWidgetBlockStart(key(Messages.GUI_SEARCH_FIELDS_TITLE_0)));
              result.append(createDialogRowsHtml(8, 8));
              result.append(createWidgetBlockEnd());
          }
          // close widget table
          result.append(createWidgetTableEnd());
  
          return result.toString();
      }