Class DistanceScoringParameters
java.lang.Object
com.azure.search.documents.indexes.models.DistanceScoringParameters
Provides parameter values to a distance scoring function.
-
Constructor Summary
ConstructorsConstructorDescriptionDistanceScoringParameters
(String referencePointParameter, double boostingDistance) Creates an instance of DistanceScoringParameters class. -
Method Summary
Modifier and TypeMethodDescriptiondouble
Get the boostingDistance property: The distance in kilometers from the reference location where the boosting range ends.Get the referencePointParameter property: The name of the parameter passed in search queries to specify the reference location.
-
Constructor Details
-
DistanceScoringParameters
Creates an instance of DistanceScoringParameters class.- Parameters:
referencePointParameter
- the referencePointParameter value to set.boostingDistance
- the boostingDistance value to set.
-
-
Method Details
-
getReferencePointParameter
Get the referencePointParameter property: The name of the parameter passed in search queries to specify the reference location.- Returns:
- the referencePointParameter value.
-
getBoostingDistance
public double getBoostingDistance()Get the boostingDistance property: The distance in kilometers from the reference location where the boosting range ends.- Returns:
- the boostingDistance value.
-