
HnswSearchOptions
- Namespace
- Rowles.LeanLucene.Search
- Assembly
- Rowles.LeanLucene.dll
Search-time options for HNSW graph traversal.
public sealed class HnswSearchOptions
HnswSearchOptions

AllowList
Optional pre-filter: only documents whose identifier is contained in this set are visited during traversal. Used when the filter is highly selective.
Ef
Candidate set size (ef) maintained during traversal. Higher gives better recall.
MaxPostFilterRetries
Number of times ef is doubled when post-filtering leaves fewer than
TopK survivors. Default is three.

PostFilterMask
Optional post-filter: traversal is unrestricted, but candidates not contained in this set are dropped before returning. Used when the filter is loose.
TopK
Maximum results to return after filtering. Zero means unlimited.