Table of Contents

Public namespace Rowles.LeanLucene.Search.Searcher

Classes

Public class IndexSearcher

Holds a snapshot of segment readers and executes queries across all segments.

Public class IndexSearcherConfig

Configuration for the IndexSearcher.

Public class QueryCache

Thread-safe LRU query result cache. Entries are keyed by (Query, topN) and invalidated when the commit generation changes.

Public class RefreshFailedEventArgs

Carries the exception and consecutive-failure count for a failed SearcherManager refresh.

Public class 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.

Public class SearcherManagerConfig

Configuration for SearcherManager.

Structs

Public struct SearcherLease

A scoped reference to a IndexSearcher obtained from a SearcherManager. Disposing the lease releases the underlying reference. Prefer this over the legacy Acquire()