Table of Contents

Method GarbageCollectFiles

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

GarbageCollectFiles()

Deletes the index files that neither the index nor an open searcher uses anymore, such as segments replaced by a merge. Tantivy also does this after commits and merges, so this is rarely needed; it's useful to reclaim disk space right after disposing old searchers.

public GarbageCollectionResult GarbageCollectFiles()

Returns

GarbageCollectionResult

The files deleted, and those that couldn't be deleted (on Windows, files still mapped by a searcher).