Delen via


FreshnessScoringFunction Constructors

Definition

Overloads

FreshnessScoringFunction()

Initializes a new instance of the FreshnessScoringFunction class.

FreshnessScoringFunction(String, Double, FreshnessScoringParameters, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the FreshnessScoringFunction class.

FreshnessScoringFunction(String, Double, TimeSpan, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the FreshnessScoringFunction class.

FreshnessScoringFunction()

Source:
FreshnessScoringFunction.cs

Initializes a new instance of the FreshnessScoringFunction class.

public FreshnessScoringFunction ();
Public Sub New ()

Applies to

FreshnessScoringFunction(String, Double, FreshnessScoringParameters, Nullable<ScoringFunctionInterpolation>)

Source:
FreshnessScoringFunction.cs

Initializes a new instance of the FreshnessScoringFunction class.

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

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

FreshnessScoringFunction(String, Double, TimeSpan, Nullable<ScoringFunctionInterpolation>)

Source:
FreshnessScoringFunction.Customization.cs

Initializes a new instance of the FreshnessScoringFunction class.

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

Parameters

fieldName
String
boost
Double
boostingDuration
TimeSpan

Applies to