Share via


MagnitudeScoringFunction Class

Definition

Defines a function that boosts scores based on the magnitude of a numeric field.

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

Constructors

MagnitudeScoringFunction(String, Double, MagnitudeScoringParameters)

Initializes a new instance of MagnitudeScoringFunction.

Properties

Boost

A multiplier for the raw score. Must be a positive number not equal to 1.0.

(Inherited from ScoringFunction)
FieldName

The name of the field used as input to the scoring function.

(Inherited from ScoringFunction)
Interpolation

A value indicating how boosting will be interpolated across document scores; defaults to "Linear".

(Inherited from ScoringFunction)
Parameters

Parameter values for the magnitude scoring function.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<MagnitudeScoringFunction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<MagnitudeScoringFunction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IJsonModel<ScoringFunction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

(Inherited from ScoringFunction)
IJsonModel<ScoringFunction>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from ScoringFunction)
IPersistableModel<MagnitudeScoringFunction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<MagnitudeScoringFunction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<MagnitudeScoringFunction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

IPersistableModel<ScoringFunction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from ScoringFunction)
IPersistableModel<ScoringFunction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

(Inherited from ScoringFunction)
IPersistableModel<ScoringFunction>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from ScoringFunction)

Applies to