

HnswReader
- Namespace
- Rowles.LeanLucene.Codecs.Hnsw
- Assembly
- Rowles.LeanLucene.dll
Reads a HnswGraph previously written by HnswWriter. The graph is materialised into the frozen, read-only state ready for concurrent search.
internal static class HnswReader
HnswReader
Methods
Read(string, IVectorSource, bool?, IReadOnlyDictionary<int, int>?)
Reads a graph and optionally remaps every doc-id (entry point, node keys, neighbour ids) through
docIdRemap. Used by incremental merge to translate from a source segment's local ids into the merged segment's id space. Any node whose id is missing from the map is dropped; back-edges to dropped nodes are removed.