code: public void rebuildAllIndexes() throws Exception {
  
          I_CmsReport report = new CmsShellReport(m_cms.getRequestContext().getLocale());
          OpenCms.getSearchManager().rebuildAllIndexes(report);
      }
docs: Rebuilds (if required creates) all configured search indexes.<p>
  
  @throws Exception if something goes wrong
  
  @see org.opencms.search.CmsSearchManager#rebuildAllIndexes(org.opencms.report.I_CmsReport)