Method Dispose
- Namespace
- TantivyDotNet
- Assembly
- TantivyDotNet.dll
Dispose()
Releases the writer and its index lock without committing. Safe to call more than once.
public void Dispose()
Remarks
Blocks until background segment merges started by earlier commits have finished, as Lucene's
IndexWriter.Dispose() does, so their work isn't lost. After a large commit this can take
a while. A writer that is never disposed is released by its finalizer, which doesn't wait:
running merges are abandoned (their files are cleaned up later) and the lock is released.