Share via


ScoringProfile Class

Definition

Defines parameters for a search index that influence scoring in search queries.

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

Constructors

ScoringProfile(String)

Initializes a new instance of ScoringProfile.

Properties

FunctionAggregation

A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions.

Functions

The collection of functions that influence the scoring of documents.

Name

The name of the scoring profile.

TextWeights

Parameters that boost scoring based on text matches in certain index fields.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<ScoringProfile>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<ScoringProfile>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<ScoringProfile>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<ScoringProfile>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<ScoringProfile>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to