SearchModelFactory.TextWeights(IDictionary<String,Double>) Method

Definition

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

public static Azure.Search.Documents.Indexes.Models.TextWeights TextWeights(System.Collections.Generic.IDictionary<string,double> weights = default);
static member TextWeights : System.Collections.Generic.IDictionary<string, double> -> Azure.Search.Documents.Indexes.Models.TextWeights
Public Shared Function TextWeights (Optional weights As IDictionary(Of String, Double) = Nothing) As TextWeights

Parameters

weights
IDictionary<String,Double>

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

Returns

A new TextWeights instance for mocking.

Applies to