Share via


TextWeights Class

Definition

Defines weights on index fields for which matches should boost scoring in search queries.

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

Constructors

TextWeights(IDictionary<String,Double>)

Initializes a new instance of TextWeights.

Properties

Weights

The dictionary of per-field weights to boost document scoring. The keys are field names and the values are the weights for each field.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<TextWeights>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<TextWeights>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<TextWeights>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<TextWeights>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<TextWeights>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to