Section navigation

Public namespace Rowles.LeanCorpus.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 MultiReader

Searches an immutable composition of multiple directory snapshots without merging their files.

Public class QueryCache

Thread-safe query result cache. Entries are keyed by (Query, topN) and invalidated when the commit generation changes. Uses ConcurrentDictionary<TKey, TValue> with generation-swap eviction: readers are lock-free on the common path, and when the soft entry cap is exceeded the entire dictionary is swapped for a fresh one via CompareExchange(ref object, object, object).

Public class ReaderManagerDiagnostics

Reports the state of a generic reader manager.

Public class ReaderManager<TReader>

Owns an immutable, reference-counted reader and swaps in replacements produced by a caller-supplied refresh function.

Public class ReaderRefreshFailedEventArgs

Reports a failed generic reader refresh.

Public class RefreshFailedEventArgs

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

Public class RetainedSearchGeneration
Public class SearchSession

An opaque handle to one retained, read-only searcher snapshot.

Public class SearchSessionDiagnostics

Current bounded-session resource and lifecycle diagnostics.

Public class SearchSessionException

A typed search-session or cursor failure.

Public class SearchSessionManager

Owns bounded point-in-time search sessions over SearcherManager leases.

Public class SearchSessionOptions

Controls the bounded lifetime and resource use of search sessions.

Public class SearchSessionPage

One page from a retained search snapshot.

Public class SearcherManager

Manages the lifecycle of IndexSearcher instances through the generic reader manager.

Public class SearcherManagerConfig

Configuration for SearcherManager.

Structs

Public struct ReaderLease<TReader>

Provides the reader captured by a ReaderLease<TReader>.

Public struct SearchAfterValue

Represents one typed sort value at a search-after boundary.

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()

Enums

Public enum SearchSessionFailureReason
Public enum SearchSessionLimitPolicy