

FieldLengthReader
- Namespace
- Rowles.LeanLucene.Codecs.DocValues
- Assembly
- Rowles.LeanLucene.dll
Reads exact per-field per-doc token counts from a .fln file.
Returns Dictionary<string, int[]> keyed by field name.
Supports both VarInt (v2) and fixed ushort (v1) formats.
Falls back gracefully when the file does not exist (caller should use quantised norms).
internal static class FieldLengthReader
FieldLengthReader
Methods
TryRead(string)
Tries to load exact field lengths. Returns null if the file does not exist. Throws on corrupt/invalid data.