Table of Contents

Internal classStaticInternal VectorFilePaths

Namespace
Rowles.LeanLucene.Codecs.Vectors
Assembly
Rowles.LeanLucene.dll

Helpers for resolving per-field vector and HNSW file paths within a segment. Convention: "{segmentId}v{sanitisedFieldName}.{ext}" so multiple vector fields can co-exist in one segment without colliding with the legacy single-vector layout.

internal static class VectorFilePaths
VectorFilePaths

Public method HnswFile(string, string)

Returns the per-field .hnsw file path.

Public method Sanitise(string)

Returns a filesystem-safe representation of fieldName. Replaces any character that is not ASCII letter/digit with an underscore.

Public method VectorFile(string, string)

Returns the per-field .vec file path.