Class MagnitudeScoringFunction
java.lang.Object
com.azure.search.documents.indexes.models.ScoringFunction
com.azure.search.documents.indexes.models.MagnitudeScoringFunction
Defines a function that boosts scores based on the magnitude of a numeric field.
-
Constructor Summary
ConstructorDescriptionMagnitudeScoringFunction
(String fieldName, double boost, MagnitudeScoringParameters parameters) Creates an instance of MagnitudeScoringFunction class. -
Method Summary
Modifier and TypeMethodDescriptionGet the parameters property: Parameter values for the magnitude scoring function.Methods inherited from class com.azure.search.documents.indexes.models.ScoringFunction
getBoost, getFieldName, getInterpolation, setInterpolation
-
Constructor Details
-
MagnitudeScoringFunction
public MagnitudeScoringFunction(String fieldName, double boost, MagnitudeScoringParameters parameters) Creates an instance of MagnitudeScoringFunction class.- Parameters:
fieldName
- the fieldName value to set.boost
- the boost value to set.parameters
- the parameters value to set.
-
-
Method Details
-
getParameters
Get the parameters property: Parameter values for the magnitude scoring function.- Returns:
- the parameters value.
-