Class FreshnessScoringFunction
- java.lang.Object
-
- com.azure.search.documents.indexes.models.ScoringFunction
-
- com.azure.search.documents.indexes.models.FreshnessScoringFunction
-
public final class FreshnessScoringFunction extends ScoringFunction
Defines a function that boosts scores based on the value of a date-time field.
-
-
Constructor Summary
Constructors Constructor Description FreshnessScoringFunction(String fieldName, double boost, FreshnessScoringParameters parameters)
Creates an instance of FreshnessScoringFunction class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FreshnessScoringParameters
getParameters()
Get the parameters property: Parameter values for the freshness scoring function.-
Methods inherited from class com.azure.search.documents.indexes.models.ScoringFunction
getBoost, getFieldName, getInterpolation, setInterpolation
-
-
-
-
Constructor Detail
-
FreshnessScoringFunction
public FreshnessScoringFunction(String fieldName, double boost, FreshnessScoringParameters parameters)
Creates an instance of FreshnessScoringFunction class.- Parameters:
fieldName
- the fieldName value to set.boost
- the boost value to set.parameters
- the parameters value to set.
-
-
Method Detail
-
getParameters
public FreshnessScoringParameters getParameters()
Get the parameters property: Parameter values for the freshness scoring function.- Returns:
- the parameters value.
-
-