
SearcherLease
- Namespace
- Rowles.LeanLucene.Search.Searcher
- Assembly
- Rowles.LeanLucene.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
Constructors
Properties
Searcher
The leased searcher.
Methods
Dispose()
Releases the underlying reference.