Rowles.LeanLucene.Search.Queries
Classes
BlockJoinQuery
Returns parent documents whose child documents match the given child query. Follows the Lucene block-join pattern: children are stored immediately before their parent within a segment.
BooleanClause
Pairs a Query with an Occur specifying how it participates in a BooleanQuery.
BooleanQuery
Combines sub-queries with MUST, SHOULD, and MUST_NOT clauses.
ConstantScoreQuery
Wraps an inner query and assigns a constant score to every matching document, bypassing BM25 scoring. Useful for filter-mode boolean clauses.
DisjunctionMaxQuery
Returns the maximum score from any sub-query for a matching document, plus an optional tie-breaking bonus from remaining sub-queries.
FunctionScoreQuery
Boosts an inner query's relevance score by a numeric field value.
FuzzyQuery
Matches terms within a Levenshtein edit distance of the target term.
MoreLikeThisParameters
Configuration for MoreLikeThis term extraction and query generation.
MoreLikeThisQuery
Finds documents similar to a source document by extracting significant terms from term vectors and constructing a weighted BooleanQuery.
PhraseQuery
Exact ordered phrase match using positional data, with optional slop.
PrefixQuery
Matches all terms starting with a given prefix.
RangeQuery
Numeric range filter over NumericField values.
RegexpQuery
Matches all documents that contain a term matching the provided regular expression. The regex is applied to the bare term text (not the qualified field\0term form).
RrfQuery
Reciprocal Rank Fusion (RRF) query that merges result lists from multiple child queries without requiring score normalisation.
Score formula:
score(d) = Σ 1/(k + rank_i(d))wherekdefaults to 60.
SpanNearQuery
Matches documents where the spans from all clauses appear within Slop positions of each other. When InOrder is true, the spans must appear in the given order.
SpanNotQuery
Matches spans from Include that do not overlap with any span from Exclude.
SpanOrQuery
Matches documents that match any of the provided span sub-queries.
SpanQuery
Base type for position-aware queries that produce spans.
SpanTermQuery
A span query matching a single term.
TermQuery
Single exact-term lookup against the index.
TermRangeQuery
Matches documents whose field value falls within a lexicographic range. Bounds can be inclusive or exclusive;
nullmeans unbounded.
VectorQuery
ANN search over vector data using HNSW when available, with a flat SIMD fallback.
WildcardQuery
Matches terms using wildcard patterns (* = any chars, ? = single char).
Structs
Span
A span: a contiguous range of positions in a document.
Enums
ScoreMode
How to combine the inner query's BM25 score with the numeric field value.