Table of Contents

Internal classSealedInternal TermDictionaryReader

Namespace
Rowles.LeanLucene.Codecs.TermDictionary
Assembly
Rowles.LeanLucene.dll

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.

internal sealed class TermDictionaryReader : IDisposable
TermDictionaryReader

Methods

Public method Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Public method EnumerateAllTerms()

Enumerates all terms and their postings offsets. Used by SegmentMerger.

Public method GetAllTermsForField(string)
Public method GetFuzzyMatches(string, ReadOnlySpan<char>, int, int)
Public method GetTermsInRange(string, string?, string?, bool, bool)
Public method GetTermsMatching(string, ReadOnlySpan<char>)
Public method GetTermsMatchingRegex(string, Regex)
Public method GetTermsWithPrefix(ReadOnlySpan<char>)
Public method IntersectAutomaton(string, IAutomaton)

Intersects the term dictionary with an automaton, returning matching terms. Delegates to FSTReader on v2; falls back to brute-force scan on v1.

Public methodStatic Open(string)
Public method TryGetPostingsOffset(ReadOnlySpan<char>, out long)
Public method TryGetPostingsOffset(string, out long)