Table of Contents

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

public readonly struct SearcherLease : IDisposable

Constructors

Internal constructorInternal SearcherLease(IndexSearcher, Action)

Properties

Public propertyRead-only Searcher

The leased searcher.

Methods

Public method Dispose()

Releases the underlying reference.