MagnitudeScoringFunction Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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()
- Source:
- MagnitudeScoringFunction.cs
Initializes a new instance of the MagnitudeScoringFunction class.
public MagnitudeScoringFunction ();
Public Sub New ()
Applies to
MagnitudeScoringFunction(String, Double, MagnitudeScoringParameters, Nullable<ScoringFunctionInterpolation>)
- Source:
- MagnitudeScoringFunction.cs
Initializes a new instance of the MagnitudeScoringFunction class.
public MagnitudeScoringFunction (string fieldName, double boost, Microsoft.Azure.Search.Models.MagnitudeScoringParameters parameters, Microsoft.Azure.Search.Models.ScoringFunctionInterpolation? interpolation = default);
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) = 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
- 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'
Applies to
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, bool? shouldBoostBeyondRangeByConstant = default, Microsoft.Azure.Search.Models.ScoringFunctionInterpolation? interpolation = default);
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) = Nothing, Optional interpolation As Nullable(Of ScoringFunctionInterpolation) = Nothing)
Parameters
- fieldName
- String
- boost
- Double
- boostingRangeStart
- Double
- boostingRangeEnd
- Double
- interpolation
- Nullable<ScoringFunctionInterpolation>
Applies to
Azure SDK for .NET