Apache Lucene.Net 2.4.0 Class Library API

IndexWriter.Close Method (Boolean)

Closes the index with or without waiting for currently running merges to finish. This is only meaningful when using a MergeScheduler that runs merges in background threads.

public virtual void Close(
   bool waitForMerges
);

Parameters

waitForMerges
if true, this call will block until all merges complete; else, it will ask all running merges to abort, wait until those merges have finished (which should be at most a few seconds), and then return.

See Also

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