Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Copy the appropriate BeanShell code.

    • If your system is on version 2019_01 or later, copy this code:

      Code Block
      import com.supportwizard.seance.Seance;
      import com.supportwizard.seance.SeanceFactory;
      import com.supportwizard.search.interfaces.FTXChecker;
      import com.supportwizard.utils.TryTimer;
      //////////////////////////////////
      // change name of the project here
      //////////////////////////////////
      String PROJECT_NAME = "DemoCLM Template";
        
      Seance seance = SeanceFactory.constructAdminSeance(PROJECT_NAME);
      String out = "===Before===\n" + TryTimer.getFTSStatus(seance.getProjectID());
      FTXChecker.service().fullRecreate(seance, true);
      out = out + "\n===After===\n" + TryTimer.getFTSStatus(seance.getProjectID());
      seance.destroy();
      out;
    • If your system is on version 2018_02 or older, copy this code:

      Code Block
      import com.supportwizard.seance.*;
      import com.supportwizard.utils.*;
      import com.supportwizard.search.ejb.interfaces.*;
      //////////////////////////////////
      // change name of the project here
      //////////////////////////////////
      String PROJECT_NAME = "Demo";
       
      Seance seance = SeanceFactory.constructAdminSeance(PROJECT_NAME);
      HomesGetter hg = new HomesGetter(System.getProperties());
      FTXChecker checker = hg.getHome("com.supportwizard.search.ejb.interfaces.FTXCheckerHome").create();
       
      checker.fullRecreate(seance);
       
      checker.remove();
      seance.destroy();
  2. Paste the code into a text editor like Notepad.

  3. Replace "Demo" with the name of your project.
  4. Log in to the admin console.
  5. Go to Debugging > Debugging.
  6. Click Bean Shell.
  7. Paste the code from the text editor into the bean shell window and run it.

...