Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.Optimize Method (Boolean)

Just like {@link #Optimize()}, except you can specify whether the call should block until the optimize completes. This is only meaningful with a {@link MergeScheduler} that is able to run merges in background threads.

public virtual void Optimize(
   bool doWait
);

See Also

IndexWriter Class | Lucene.Net.Index Namespace | IndexWriter.Optimize Overload List