Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.Optimize Method

Overload List

 

public virtual void Optimize();

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);

 

public virtual void Optimize(int);

Just like {@link #Optimize(int)}, 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(int,bool);

See Also

IndexWriter Class | Lucene.Net.Index Namespace