code: @Managed
     @ManagedDescription("Starts hot async reindexing")
     public void reindex(@ManagedName("dropExisting") final boolean dropExisting, @ManagedName("nThreads") final int nThreads)
             throws IllegalStateException, ExecutionException, InterruptedException {
       reindexWorkspace(dropExisting, nThreads);
     }
docs: Public method, designed to be called via JMX, to perform "HOT" reindexing of the workspace
  @param dropExisting use the same index directory  (if "true") and all queries will throw
  an exception while task is running. Otherwise (if "false") Server can continue
  working as expected while index is recreated (the new index is created under
  a new index folder).
  @param nThreads indexing Thread Pool Size, default value is 1.
  
  @throws IllegalStateException