DistanceScoringParameters Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides parameter values to a distance scoring function.
public class DistanceScoringParameters
public class DistanceScoringParameters : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.DistanceScoringParameters>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.DistanceScoringParameters>
type DistanceScoringParameters = class
type DistanceScoringParameters = class
interface IJsonModel<DistanceScoringParameters>
interface IPersistableModel<DistanceScoringParameters>
Public Class DistanceScoringParameters
Public Class DistanceScoringParameters
Implements IJsonModel(Of DistanceScoringParameters), IPersistableModel(Of DistanceScoringParameters)
- Inheritance
-
DistanceScoringParameters
- Implements
Constructors
DistanceScoringParameters(String, Double) |
Initializes a new instance of DistanceScoringParameters. |
Properties
BoostingDistance |
The distance in kilometers from the reference location where the boosting range ends. |
ReferencePointParameter |
The name of the parameter passed in search queries to specify the reference location. |
Methods
JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) |
Explicit Interface Implementations
IJsonModel<DistanceScoringParameters>.Create(Utf8JsonReader, ModelReaderWriterOptions) |
Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model. |
IJsonModel<DistanceScoringParameters>.Write(Utf8JsonWriter, ModelReaderWriterOptions) |
Writes the model to the provided Utf8JsonWriter. |
IPersistableModel<DistanceScoringParameters>.Create(BinaryData, ModelReaderWriterOptions) |
Converts the provided BinaryData into a model. |
IPersistableModel<DistanceScoringParameters>.GetFormatFromOptions(ModelReaderWriterOptions) |
Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service. |
IPersistableModel<DistanceScoringParameters>.Write(ModelReaderWriterOptions) |
Writes the model into a BinaryData. |