Rowles.LeanLucene.Search.Searcher
Classes
IndexSearcher
Holds a snapshot of segment readers and executes queries across all segments.
IndexSearcherConfig
Configuration for the IndexSearcher.
QueryCache
Thread-safe LRU query result cache. Entries are keyed by (Query, topN) and invalidated when the commit generation changes.
RefreshFailedEventArgs
Carries the exception and consecutive-failure count for a failed SearcherManager refresh.
SearcherManager
Manages the lifecycle of IndexSearcher instances, automatically refreshing when new commits are detected. Thread-safe acquire/release pattern with reference counting ensures old searchers are disposed only after all in-flight searches complete.
SearcherManagerConfig
Configuration for SearcherManager.
Structs
SearcherLease
A scoped reference to a IndexSearcher obtained from a SearcherManager. Disposing the lease releases the underlying reference. Prefer this over the legacy Acquire()
- Release(IndexSearcher) pair: the lease bypasses the
ConditionalWeakTablelookup performed byRelease.
- Release(IndexSearcher) pair: the lease bypasses the