-
Notifications
You must be signed in to change notification settings - Fork 4.5k
/
TextWeights.cs
26 lines (21 loc) · 956 Bytes
/
TextWeights.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
using System;
using System.Collections.Generic;
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Defines weights on index fields for which matches should boost scoring in search queries. </summary>
public partial class TextWeights
{
/// <summary> Initializes a new instance of <see cref="TextWeights"/>. </summary>
/// <param name="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. </param>
/// <exception cref="ArgumentNullException"> <paramref name="weights"/> is null. </exception>
public TextWeights(IDictionary<string, double> weights)
{
Argument.AssertNotNull(weights, nameof(weights));
Weights = weights;
}
}
}