Section navigation

Public classSealed ConstantScoreQuery

Namespace
Rowles.LeanCorpus.Search.Queries
Assembly
Rowles.LeanCorpus.dll

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

public sealed class ConstantScoreQuery : Query, IEquatable<Query>
Inheritance
ConstantScoreQuery
Implements
Inherited Members
Extension Methods

Public constructor ConstantScoreQuery(Query, float)

Initialises a new ConstantScoreQuery wrapping the given inner query.

Public property ConstantScore

Gets the constant score assigned to every matching document.

Public property Field

Gets the single field this query targets, or an empty value for fieldless and multi-field queries.

Public property Inner

Gets the wrapped inner query that must match for a document to be considered.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.

Public method Visit(QueryVisitor)

Visits this query and its children.