
FunctionScoreQuery
- Namespace
- Rowles.LeanCorpus.Search.Queries
- Assembly
- Rowles.LeanCorpus.dll
Boosts an inner query's relevance score by a numeric field value.
public sealed class FunctionScoreQuery : Query, IEquatable<Query>
- Inheritance
-
FunctionScoreQuery
- Implements
- Inherited Members
- Extension Methods
FunctionScoreQuery(Query, DoubleValuesSource, ScoreMode)
Initialises a function score query using a composed value source.
FunctionScoreQuery(Query, string, ScoreMode)
Initialises a new FunctionScoreQuery wrapping the given inner query.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
Inner
Gets the inner query whose score is used as the base for the function score.
Mode
Gets the mode that controls how the numeric field value is combined with the query score.
NumericField
Gets the name of the numeric field whose value modifies the base score.
ValuesSource
Gets the source whose value modifies the base score.
Combine(float, double, ScoreMode)
Combines a query score with a numeric field value according to the specified ScoreMode.
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.