docs: private I_CmsSearchIndex getIndex() {
  
          I_CmsSearchIndex index = null;
          // get the configured index or the selected index
          if (isInitialCall()) {
              // the search form is in the initial state
              // get the configured index
              index = OpenCms.getSearchManager().getIndex(getSettings().getUserSettings().getWorkplaceSearchIndexName());
          } else {
              // the search form is not in the inital state, the submit button was used already or the
              // search index was changed already
              // get the selected index in the search dialog
              index = OpenCms.getSearchManager().getIndex(getJsp().getRequest().getParameter("indexName.0"));
          }
          return index;
      }