Share via


FreshnessScoringFunction Class

Definition

Defines a function that boosts scores based on the value of a date-time field.

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

Constructors

FreshnessScoringFunction(String, Double, FreshnessScoringParameters)

Initializes a new instance of FreshnessScoringFunction.

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 freshness scoring function.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<FreshnessScoringFunction>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<FreshnessScoringFunction>.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<FreshnessScoringFunction>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<FreshnessScoringFunction>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<FreshnessScoringFunction>.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