Table of Contents

Class IndexStats

Namespace
TantivyDotNet
Assembly
TantivyDotNet.dll

Statistics of one index snapshot, from GetStats() or GetStats().

public sealed class IndexStats
Inheritance
IndexStats
Inherited Members

Remarks

Sizes are the bytes of the snapshot's segment files, without filesystem overhead or the small index metadata files. Files of older snapshots that haven't been deleted yet aren't counted.

Properties

DeletedDocumentCount

Number of deleted documents still taking up space. Merges drop them (see ForceMerge(int) and DeletedDocsRatio).

DocumentCount

Number of live (non-deleted) documents.

Fields

Bytes used by each field across all segments, ordered by field name. Stored fields aren't included, because the doc store isn't split by field (see StoreBytes).

SegmentCount

Number of segments. Every search visits each segment, so fewer is faster.

Segments

The segments, in search order.

SizeBytes

Total size of the segment files in bytes.

Methods

ToString()

For example 3 segments, 1000 docs (12 deleted), 1234567 bytes.