Table of Contents

Public classSealed SegmentInfo

Namespace
Rowles.LeanLucene.Index.Segment
Assembly
Rowles.LeanLucene.dll

Metadata record for a single immutable segment.

public sealed class SegmentInfo
SegmentInfo

Public property CommitGeneration

Gets the commit generation at which this segment was created.

Public property DocCount

Gets the total number of documents in this segment, including deleted documents.

Public property FieldNames

Gets the names of all indexed fields present in this segment.

Public property IndexSortFields

Serialised index sort fields for this segment. Null if the segment is unsorted. Each entry is "Type:FieldName:Descending" (e.g. "Numeric:price:True").

Internal propertyInternal LiveDocCount

Gets the number of live (non-deleted) documents in this segment.

Public property SegmentId

Gets the unique identifier for this segment (e.g. "seg_0").

Public property VectorFields

Per-field vector metadata for vectors stored in this segment.

Public method ReadFrom(string)

Reads and deserialises segment metadata from the specified JSON file.

Public method WriteTo(string)

Writes this segment metadata to a JSON file at the specified path.