Section navigation

Public method Search

Namespace
Rowles.LeanCorpus.Search.Searcher
Assembly
Rowles.LeanCorpus.dll

Methods

Public method Search(Query, int)

Executes a query and returns the top-topN scoring documents. Checks the query cache first, then falls back to the full search pipeline.

Public method Search(Query, ICollector)

Executes a query and collects results through the provided ICollector. When collector is a CountCollector, this uses a zero-allocation count-only path that avoids materialising a scored heap.

Public method Search(string, string, int, IAnalyser?)

Parses a query string, applies analysis, and searches.

Public method Search(Query, int, CancellationToken)

Searches with cancellation support. Checks the token between segments and between inner sub-clauses, allowing long-running queries to be interrupted.

Public method Search(string, string, int, IAnalyser?, CancellationToken)

Parses a query string and searches with cancellation support.

Public method Search(Query, int, SearchOptions)

Executes a query under the supplied SearchOptions. The top-N heap must fit within the configured result-byte budget. The deadline and cancellation token are checked at segment boundaries; on early termination the returned TopDocs has IsPartial set to true.

Public method Search(Query, SearchOptions)

Executes a query and returns results as an IEnumerable<T>. When StreamResults is true, results are yielded per-segment without building a global top-N heap. When false, results are materialised from a global top-N search and then yielded.

Public method Search(RankingSearchRequest)

Executes an immutable ranking profile, its bounded pipeline, and its matching rules. Profile similarities must match this searcher's immutable scoring configuration.

Public method Search(Query, int, params SortField[])

Searches using an ordered list of sort fields.

Public method Search(Query, int, IReadOnlyList<SortField>, SearchOptions)

Searches using an ordered list of sort fields and resource controls.

Public method Search(Query, int, SortField)

Searches with a custom sort order instead of relevance ranking. Matching documents are collected, then a heap-select picks the top-N by the requested field without performing a full sort over every match.

Public method Search(Query, int, SortField, SearchOptions)

Searches with a custom sort order and resource controls. Honours Timeout, CancellationToken, and MaxResultBytes.