DistanceScoringParameters Class
- java.
lang. Object - com.
azure. search. documents. indexes. models. DistanceScoringParameters
- com.
Implements
public final class DistanceScoringParameters
implements JsonSerializable<DistanceScoringParameters>
Provides parameter values to a distance scoring function.
Constructor Summary
| Constructor | Description |
|---|---|
| DistanceScoringParameters(String referencePointParameter, double boostingDistance) |
Creates an instance of Distance |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Distance |
fromJson(JsonReader jsonReader)
Reads an instance of Distance |
| double |
getBoostingDistance()
Get the boosting |
| String |
getReferencePointParameter()
Get the reference |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
DistanceScoringParameters
public DistanceScoringParameters(String referencePointParameter, double boostingDistance)
Creates an instance of DistanceScoringParameters class.
Parameters:
Method Details
fromJson
public static DistanceScoringParameters fromJson(JsonReader jsonReader)
Reads an instance of DistanceScoringParameters from the JsonReader.
Parameters:
Returns:
Throws:
getBoostingDistance
public double getBoostingDistance()
Get the boostingDistance property: The distance in kilometers from the reference location where the boosting range ends.
Returns:
getReferencePointParameter
public String getReferencePointParameter()
Get the referencePointParameter property: The name of the parameter passed in search queries to specify the reference location.
Returns: