Class ScoringFunction
Base type for functions that can modify document scores during ranking. Please note ScoringFunction is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. The available derived classes include DistanceScoringFunction, FreshnessScoringFunction, MagnitudeScoringFunction and TagScoringFunction.
Inheritance
System.Object
ScoringFunction
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class ScoringFunction
Properties
Boost
A multiplier for the raw score. Must be a positive number not equal to 1.0.
Declaration
public double Boost { get; set; }
Property Value
System.Double
|
FieldName
The name of the field used as input to the scoring function.
Declaration
public string FieldName { get; set; }
Property Value
System.String
|
Interpolation
A value indicating how boosting will be interpolated across document scores; defaults to "Linear".
Declaration
public Nullable<Azure.Search.Documents.Indexes.Models.ScoringFunctionInterpolation> Interpolation { get; set; }
Property Value
System.Nullable<ScoringFunctionInterpolation>
|