Condividi tramite


ScoringFunction Constructors

Definition

Overloads

ScoringFunction()

Initializes a new instance of the ScoringFunction class.

ScoringFunction(String, Double, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the ScoringFunction class.

ScoringFunction()

Source:
ScoringFunction.cs

Initializes a new instance of the ScoringFunction class.

public ScoringFunction ();
Public Sub New ()

Applies to

ScoringFunction(String, Double, Nullable<ScoringFunctionInterpolation>)

Source:
ScoringFunction.cs

Initializes a new instance of the ScoringFunction class.

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

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.

interpolation
Nullable<ScoringFunctionInterpolation>

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

Applies to