Rowles.LeanLucene.Codecs.TermDictionary
Classes
TermDictionaryReader
Reads a .dic file produced by TermDictionaryWriter. Detects format version automatically: v2 (current): delegates to FSTReader for byte-keyed O(log N) lookups. v1 (legacy): materialises all terms into string[] + long[] for backward compatibility.
TermDictionaryWriter
Writes a sorted term dictionary in v2 compact byte-keyed format. Format: [magic][version=2][termCount:int32][offsets: N×int64][keyStarts: (N+1)×int32][keyData: UTF-8]. Binary search on raw UTF-8 bytes — no string materialisation at read time.