
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
ConstantScoreQuery(Query, float)
Initialises a new ConstantScoreQuery wrapping the given inner query.
Properties
ConstantScore
Gets the constant score assigned to every matching document.
Field
Gets the primary field this query targets.
Inner
Gets the wrapped inner query that must match for a document to be considered.
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.