Section navigation

Public structRead-only 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()

public readonly struct SearcherLease : IDisposable
Implements

Public property CommitGeneration

The committed generation captured when the lease was acquired.

Public property ContentToken

The commit content token captured when the lease was acquired.

Public property Searcher

The leased searcher.

Public method Dispose()

Releases the underlying reference.