Section navigation

Public classSealed 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

Public constructor FunctionScoreQuery(Query, DoubleValuesSource, ScoreMode)

Initialises a function score query using a composed value source.

Public constructor FunctionScoreQuery(Query, string, ScoreMode)

Initialises a new FunctionScoreQuery wrapping the given inner query.

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 inner query whose score is used as the base for the function score.

Public property Mode

Gets the mode that controls how the numeric field value is combined with the query score.

Public property NumericField

Gets the name of the numeric field whose value modifies the base score.

Public property ValuesSource

Gets the source whose value modifies the base score.

Public method Combine(float, double, ScoreMode)

Combines a query score with a numeric field value according to the specified ScoreMode.

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.