Table of Contents

Public namespace Rowles.LeanLucene.Search.Queries

Classes

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

Public class BooleanClause

Pairs a Query with an Occur specifying how it participates in a BooleanQuery.

Public class BooleanQuery

Combines sub-queries with MUST, SHOULD, and MUST_NOT clauses.

Public class ConstantScoreQuery

Wraps an inner query and assigns a constant score to every matching document, bypassing BM25 scoring. Useful for filter-mode boolean clauses.

Public class DisjunctionMaxQuery

Returns the maximum score from any sub-query for a matching document, plus an optional tie-breaking bonus from remaining sub-queries.

Public class FunctionScoreQuery

Boosts an inner query's relevance score by a numeric field value.

Public class FuzzyQuery

Matches terms within a Levenshtein edit distance of the target term.

Public class MoreLikeThisParameters

Configuration for MoreLikeThis term extraction and query generation.

Public class MoreLikeThisQuery

Finds documents similar to a source document by extracting significant terms from term vectors and constructing a weighted BooleanQuery.

Public class PhraseQuery

Exact ordered phrase match using positional data, with optional slop.

Public class PrefixQuery

Matches all terms starting with a given prefix.

Public class RangeQuery

Numeric range filter over NumericField values.

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

Public class 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)) where k defaults to 60.

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

Public class SpanNotQuery

Matches spans from Include that do not overlap with any span from Exclude.

Public class SpanOrQuery

Matches documents that match any of the provided span sub-queries.

Public class SpanQuery

Base type for position-aware queries that produce spans.

Public class SpanTermQuery

A span query matching a single term.

Public class TermQuery

Single exact-term lookup against the index.

Public class TermRangeQuery

Matches documents whose field value falls within a lexicographic range. Bounds can be inclusive or exclusive; null means unbounded.

Public class VectorQuery

ANN search over vector data using HNSW when available, with a flat SIMD fallback.

Public class WildcardQuery

Matches terms using wildcard patterns (* = any chars, ? = single char).

Structs

Public struct Span

A span: a contiguous range of positions in a document.

Enums

Public enum ScoreMode

How to combine the inner query's BM25 score with the numeric field value.