
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
ConstantScoreQuery(Query, float)
Initialises a new ConstantScoreQuery wrapping the given inner query.
ConstantScore
Gets the constant score assigned to every matching document.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
Inner
Gets the wrapped inner query that must match for a document to be considered.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.
Visit(QueryVisitor)
Visits this query and its children.