Table of Contents

Public classSealed HnswSearchOptions

Namespace
Rowles.LeanLucene.Search
Assembly
Rowles.LeanLucene.dll

Search-time options for HNSW graph traversal.

public sealed class HnswSearchOptions
HnswSearchOptions

Internal propertyInternal AllowList

Optional pre-filter: only documents whose identifier is contained in this set are visited during traversal. Used when the filter is highly selective.

Public property Ef

Candidate set size (ef) maintained during traversal. Higher gives better recall.

Public property MaxPostFilterRetries

Number of times ef is doubled when post-filtering leaves fewer than TopK survivors. Default is three.

Internal propertyInternal PostFilterMask

Optional post-filter: traversal is unrestricted, but candidates not contained in this set are dropped before returning. Used when the filter is loose.

Public property TopK

Maximum results to return after filtering. Zero means unlimited.