Share via


MagnitudeScoringParameters Class

Definition

Provides parameter values to a magnitude scoring function.

public class MagnitudeScoringParameters
public class MagnitudeScoringParameters : System.ClientModel.Primitives.IJsonModel<Azure.Search.Documents.Indexes.Models.MagnitudeScoringParameters>, System.ClientModel.Primitives.IPersistableModel<Azure.Search.Documents.Indexes.Models.MagnitudeScoringParameters>
type MagnitudeScoringParameters = class
type MagnitudeScoringParameters = class
    interface IJsonModel<MagnitudeScoringParameters>
    interface IPersistableModel<MagnitudeScoringParameters>
Public Class MagnitudeScoringParameters
Public Class MagnitudeScoringParameters
Implements IJsonModel(Of MagnitudeScoringParameters), IPersistableModel(Of MagnitudeScoringParameters)
Inheritance
MagnitudeScoringParameters
Implements

Constructors

MagnitudeScoringParameters(Double, Double)

Initializes a new instance of MagnitudeScoringParameters.

Properties

BoostingRangeEnd

The field value at which boosting ends.

BoostingRangeStart

The field value at which boosting starts.

ShouldBoostBeyondRangeByConstant

A value indicating whether to apply a constant boost for field values beyond the range end value; default is false.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MagnitudeScoringParameters>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<MagnitudeScoringParameters>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<MagnitudeScoringParameters>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MagnitudeScoringParameters>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<MagnitudeScoringParameters>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to