

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
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
EnumerateAllTerms()
Enumerates all terms and their postings offsets. Used by SegmentMerger.
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.