MagnitudeScoringFunction Constructors

Definition

Overloads

MagnitudeScoringFunction()

Initializes a new instance of the MagnitudeScoringFunction class.

MagnitudeScoringFunction(String, Double, MagnitudeScoringParameters, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the MagnitudeScoringFunction class.

MagnitudeScoringFunction(String, Double, Double, Double, Nullable<Boolean>, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the MagnitudeScoringFunction class.

MagnitudeScoringFunction()

Initializes a new instance of the MagnitudeScoringFunction class.

public MagnitudeScoringFunction ();
Public Sub New ()

MagnitudeScoringFunction(String, Double, MagnitudeScoringParameters, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the MagnitudeScoringFunction class.

public MagnitudeScoringFunction (string fieldName, double boost, Microsoft.Azure.Search.Models.MagnitudeScoringParameters parameters, Nullable<Microsoft.Azure.Search.Models.ScoringFunctionInterpolation> interpolation = null);
new Microsoft.Azure.Search.Models.MagnitudeScoringFunction : string * double * Microsoft.Azure.Search.Models.MagnitudeScoringParameters * Nullable<Microsoft.Azure.Search.Models.ScoringFunctionInterpolation> -> Microsoft.Azure.Search.Models.MagnitudeScoringFunction
Public Sub New (fieldName As String, boost As Double, parameters As MagnitudeScoringParameters, Optional interpolation As Nullable(Of ScoringFunctionInterpolation) = null)

Parameters

fieldName
String

The name of the field used as input to the scoring function.

boost
Double

A multiplier for the raw score. Must be a positive number not equal to 1.0.

parameters
MagnitudeScoringParameters

Parameter values for the magnitude scoring function.

interpolation
Nullable<ScoringFunctionInterpolation>

A value indicating how boosting will be interpolated across document scores; defaults to "Linear". Possible values include: 'linear', 'constant', 'quadratic', 'logarithmic'

MagnitudeScoringFunction(String, Double, Double, Double, Nullable<Boolean>, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the MagnitudeScoringFunction class.

public MagnitudeScoringFunction (string fieldName, double boost, double boostingRangeStart, double boostingRangeEnd, Nullable<bool> shouldBoostBeyondRangeByConstant = null, Nullable<Microsoft.Azure.Search.Models.ScoringFunctionInterpolation> interpolation = null);
new Microsoft.Azure.Search.Models.MagnitudeScoringFunction : string * double * double * double * Nullable<bool> * Nullable<Microsoft.Azure.Search.Models.ScoringFunctionInterpolation> -> Microsoft.Azure.Search.Models.MagnitudeScoringFunction
Public Sub New (fieldName As String, boost As Double, boostingRangeStart As Double, boostingRangeEnd As Double, Optional shouldBoostBeyondRangeByConstant As Nullable(Of Boolean) = null, Optional interpolation As Nullable(Of ScoringFunctionInterpolation) = null)

Parameters

fieldName
String
boost
Double
boostingRangeStart
Double
boostingRangeEnd
Double
shouldBoostBeyondRangeByConstant
Nullable<Boolean>

Applies to