Condividi tramite


DistanceScoringFunction Constructors

Definition

Overloads

DistanceScoringFunction()

Initializes a new instance of the DistanceScoringFunction class.

DistanceScoringFunction(String, Double, DistanceScoringParameters, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the DistanceScoringFunction class.

DistanceScoringFunction(String, Double, String, Double, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the DistanceScoringFunction class.

DistanceScoringFunction()

Source:
DistanceScoringFunction.cs

Initializes a new instance of the DistanceScoringFunction class.

public DistanceScoringFunction ();
Public Sub New ()

Applies to

DistanceScoringFunction(String, Double, DistanceScoringParameters, Nullable<ScoringFunctionInterpolation>)

Source:
DistanceScoringFunction.cs

Initializes a new instance of the DistanceScoringFunction class.

public DistanceScoringFunction (string fieldName, double boost, Microsoft.Azure.Search.Models.DistanceScoringParameters parameters, Microsoft.Azure.Search.Models.ScoringFunctionInterpolation? interpolation = default);
new Microsoft.Azure.Search.Models.DistanceScoringFunction : string * double * Microsoft.Azure.Search.Models.DistanceScoringParameters * Nullable<Microsoft.Azure.Search.Models.ScoringFunctionInterpolation> -> Microsoft.Azure.Search.Models.DistanceScoringFunction
Public Sub New (fieldName As String, boost As Double, parameters As DistanceScoringParameters, 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.

parameters
DistanceScoringParameters

Parameter values for the distance 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'

Applies to

DistanceScoringFunction(String, Double, String, Double, Nullable<ScoringFunctionInterpolation>)

Source:
DistanceScoringFunction.Customization.cs

Initializes a new instance of the DistanceScoringFunction class.

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

Parameters

fieldName
String
boost
Double
referencePointParameter
String
boostingDistance
Double

Applies to