Class DistanceScoringParameters
- java.lang.Object
-
- com.azure.search.documents.indexes.models.DistanceScoringParameters
-
public final class DistanceScoringParameters extends Object
Provides parameter values to a distance scoring function.
-
-
Constructor Summary
Constructors Constructor Description DistanceScoringParameters(String referencePointParameter, double boostingDistance)
Creates an instance of DistanceScoringParameters class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getBoostingDistance()
Get the boostingDistance property: The distance in kilometers from the reference location where the boosting range ends.String
getReferencePointParameter()
Get the referencePointParameter property: The name of the parameter passed in search queries to specify the reference location.
-
-
-
Constructor Detail
-
DistanceScoringParameters
public DistanceScoringParameters(String referencePointParameter, double boostingDistance)
Creates an instance of DistanceScoringParameters class.- Parameters:
referencePointParameter
- the referencePointParameter value to set.boostingDistance
- the boostingDistance value to set.
-
-
Method Detail
-
getReferencePointParameter
public String 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.
-
-