Class FreshnessScoringFunction
Defines a function that boosts scores based on the value of a date-time field.
Namespace: System.Dynamic.ExpandoObject
Assembly: Azure.Search.Documents.dll
Syntax
public class FreshnessScoringFunction : Azure.Search.Documents.Indexes.Models.ScoringFunction
Constructors
FreshnessScoringFunction(String, Double, FreshnessScoringParameters)
Initializes a new instance of FreshnessScoringFunction.
Declaration
public FreshnessScoringFunction (string fieldName, double boost, Azure.Search.Documents.Indexes.Models.FreshnessScoringParameters 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. |
FreshnessScoringParameters
parameters
Parameter values for the freshness scoring function. |
Exceptions
System.ArgumentException
|
System.ArgumentNullException
|
Properties
Parameters
Parameter values for the freshness scoring function.
Declaration
public Azure.Search.Documents.Indexes.Models.FreshnessScoringParameters Parameters { get; set; }
Property Value
FreshnessScoringParameters
|