
SearcherLease
- Namespace
- Rowles.LeanCorpus.Search.Searcher
- Assembly
- Rowles.LeanCorpus.dll
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.
public readonly struct SearcherLease : IDisposable
- Implements
CommitGeneration
The committed generation captured when the lease was acquired.
ContentToken
The commit content token captured when the lease was acquired.
Searcher
The leased searcher.
Dispose()
Releases the underlying reference.