code: public void rebuildIndex(String index) throws Exception {
  
          OpenCms.getSearchManager().rebuildIndex(index, new CmsShellReport(m_cms.getRequestContext().getLocale()));
      }
docs: Rebuilds (if required creates) the given search index.<p>
  
  @param index name of the index to update
  @throws Exception if something goes wrong
  @see org.opencms.search.CmsSearchManager#rebuildIndex(String, org.opencms.report.I_CmsReport)