docs: public void setIndexRebuildMode(String searchIndex, String mode) {
  
          I_CmsSearchIndex index = OpenCms.getSearchManager().getIndex(searchIndex);
          if (index != null) {
              index.setRebuildMode(mode);
              // required for this setting to take effect
              OpenCms.getSearchManager().initOfflineIndexes();
          }
      }