Table of Contents

Method GetStats

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

GetStats()

Statistics of this searcher's snapshot: segments, document counts, and sizes on disk per segment and per field.

public IndexStats GetStats()

Returns

IndexStats

Exceptions

TantivyException

With Io if the snapshot is outdated and its files were deleted after a merge replaced them. (The searcher can still search, because it keeps its files open, but sizes are read by reopening them.) Use a newer searcher or GetStats().