Class MagnitudeScoringFunction
Defines a function that boosts scores based on the magnitude of a numeric field.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class MagnitudeScoringFunction : Azure.Search.Documents.Indexes.Models.ScoringFunction
Constructors
MagnitudeScoringFunction(String, Double, MagnitudeScoringParameters)
Initializes a new instance of MagnitudeScoringFunction.
Declaration
public MagnitudeScoringFunction (string fieldName, double boost, Azure.Search.Documents.Indexes.Models.MagnitudeScoringParameters parameters);
Parameters
System.String
fieldName
The name of the field used as input to the scoring function. |
System.Double
boost
A multiplier for the raw score. Must be a positive number not equal to 1.0. |
MagnitudeScoringParameters
parameters
Parameter values for the magnitude scoring function. |
Exceptions
System.ArgumentException
|
System.ArgumentNullException
|
Properties
Parameters
Parameter values for the magnitude scoring function.
Declaration
public Azure.Search.Documents.Indexes.Models.MagnitudeScoringParameters Parameters { get; set; }
Property Value
MagnitudeScoringParameters
|