Rowles.LeanCorpus.Search.Queries
Classes
BinaryPointInSetQuery
Matches binary doc values equal to any supplied byte sequence.
BinaryRangeQuery
Matches binary doc values within a lexicographic byte range.
BlockJoinQuery
Returns parent documents whose child documents match the given child query. Follows the Corpus 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. Once a BooleanQuery has been built via BooleanQuery.Builder it is immutable; the clauses list is sealed and all properties are frozen.
BooleanQuery.Builder
Builds an immutable BooleanQuery.
CombinedFieldsQuery
Matches terms across several text fields using combined-field scoring semantics.
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.
DisjunctionMaxQuery.Builder
Builder for an immutable DisjunctionMaxQuery.
FieldExistsQuery
Matches documents that contain at least one value for the named field.
FieldMaskingSpanQuery
Reports spans from one field as though they belonged to another field.
FunctionQuery
Matches every live document and scores it from a DoubleValuesSource.
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.
InetAddressPointInSetQuery
Matches IPv4 or IPv6 values equal to any supplied address.
InetAddressRangeQuery
Matches IPv4 or IPv6 values within an inclusive or exclusive address range.
Int32PointInSetQuery
Matches any supplied 32-bit integer point.
Int32RangeQuery
Numeric range query over 32-bit integer values.
Int64PointInSetQuery
Matches documents whose 64-bit integer point value is equal to any value in the supplied set.
Int64RangeQuery
Numeric range filter over 64-bit integer field values.
IntervalsContainedBySource
Returns inner intervals that are fully contained by an outer interval.
IntervalsContainingSource
Returns outer intervals that contain at least one inner interval.
IntervalsNotContainingSource
Returns outer intervals that do not contain any inner interval.
IntervalsOrSource
Union of any child interval source.
IntervalsOrderedSource
Ordered interval composition across child sources.
IntervalsPhraseSource
Interval source for an exact phrase.
IntervalsQuery
Matches documents that produce at least one interval from the supplied source tree.
IntervalsSource
Base type for interval-source nodes.
IntervalsTermSource
Leaf interval source for a single exact term.
IntervalsUnorderedSource
Unordered interval composition across child sources.
MatchAllDocsQuery
Matches every live document in the index.
MatchNoDocsQuery
Matches no documents.
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.
MultiPhraseQuery
Matches an ordered phrase where each slot can contain one of several alternative terms.
PhraseQuery
Exact ordered phrase match using positional data, with optional slop.
PointInSetQuery
Matches documents whose numeric point value is equal to any value in the supplied set.
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.
SinglePointInSetQuery
Matches any supplied single-precision point.
SingleRangeQuery
Numeric range query over single-precision values.
SpanContainingQuery
Returns enclosing spans that contain a matching inner span.
SpanFirstQuery
Matches spans whose end position is at or before a field position.
SpanMultiTermQueryWrapper
Expands a multi-term query into position-aware term spans at search time.
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.
SpanWithinQuery
Returns inner spans that are contained by a matching enclosing span.
SynonymQuery
Matches any of several terms as one scoring unit.
TermInSetQuery
Matches documents containing any of the exact terms in the supplied set.
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.
TermsQuery
Matches documents containing any exact UTF-8 term in the supplied set.
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.