code: public void rebuildIndex(String indexName, I_CmsReport report) throws CmsException {
  
          try {
              SEARCH_MANAGER_LOCK.lock();
              // get the search index by name
              I_CmsSearchIndex index = getIndex(indexName);
              // update the index
              updateIndex(index, report, null);
              // clean up the extraction result cache
              cleanExtractionCache();
          } finally {
              SEARCH_MANAGER_LOCK.unlock();
          }
      }
docs: Rebuilds (if required creates) the index with the given name.<p>
  
  @param indexName the name of the index to rebuild
  @param report the report object to write messages (or <code>null</code>)
  
  @throws CmsException if something goes wrong