SearchModelFactory.TextWeights(IDictionary<String,Double>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.