code: protected void search(CmsSearchReplaceSettings settings, boolean updateState) {
  
          if (updateState) {
              String state = generateState(settings);
              CmsAppWorkplaceUi.get().changeCurrentAppState(state);
              m_currentState = state;
          }
  
          CmsObject cms;
          try {
              cms = OpenCms.initCmsObject(A_CmsUI.getCmsObject());
              if (settings.getSiteRoot() != null) {
                  cms.getRequestContext().setSiteRoot(settings.getSiteRoot());
              }
  
              m_thread = new CmsSearchReplaceThread(A_CmsUI.get().getHttpSession(), cms, settings);
              if (m_report != null) {
                  m_searchForm.removeComponent(m_report);
              }
              m_report = new CmsReportOverlay(m_thread);
              m_report.addReportFinishedHandler(new Runnable() {
  
                  public void run() {
  
                      displayResult();
                  }
              });
              m_searchForm.addComponent(m_report);
              m_report.setTitle(CmsVaadinUtils.getMessageText(Messages.GUI_SOURCESEARCH_REPORT_TITLE_0));
              m_thread.start();
              m_resultTableFilter.clear();
          } catch (CmsException e) {
              CmsErrorDialog.showErrorDialog(e);
          }
      }
docs: Executes the search.<p>
  
  @param settings the search settings
  @param updateState <code>true</code> to create a new history entry