Table of Contents

Public classSealed ConstantScoreQuery

Namespace
Rowles.LeanLucene.Search.Queries
Assembly
Rowles.LeanLucene.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
Inherited Members
Extension Methods

Constructors

Public constructor ConstantScoreQuery(Query, float)

Initialises a new ConstantScoreQuery wrapping the given inner query.

Properties

Public propertyRead-only ConstantScore

Gets the constant score assigned to every matching document.

Public propertyRead-only Field

Gets the primary field this query targets.

Public propertyRead-only Inner

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

Methods

Public method Equals(object?)

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

Public method GetHashCode()

Serves as the default hash function.