-
Notifications
You must be signed in to change notification settings - Fork 4.6k
/
MagnitudeScoringParameters.cs
40 lines (35 loc) · 2.1 KB
/
MagnitudeScoringParameters.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// <auto-generated/>
#nullable disable
namespace Azure.Search.Documents.Indexes.Models
{
/// <summary> Provides parameter values to a magnitude scoring function. </summary>
public partial class MagnitudeScoringParameters
{
/// <summary> Initializes a new instance of <see cref="MagnitudeScoringParameters"/>. </summary>
/// <param name="boostingRangeStart"> The field value at which boosting starts. </param>
/// <param name="boostingRangeEnd"> The field value at which boosting ends. </param>
public MagnitudeScoringParameters(double boostingRangeStart, double boostingRangeEnd)
{
BoostingRangeStart = boostingRangeStart;
BoostingRangeEnd = boostingRangeEnd;
}
/// <summary> Initializes a new instance of <see cref="MagnitudeScoringParameters"/>. </summary>
/// <param name="boostingRangeStart"> The field value at which boosting starts. </param>
/// <param name="boostingRangeEnd"> The field value at which boosting ends. </param>
/// <param name="shouldBoostBeyondRangeByConstant"> A value indicating whether to apply a constant boost for field values beyond the range end value; default is false. </param>
internal MagnitudeScoringParameters(double boostingRangeStart, double boostingRangeEnd, bool? shouldBoostBeyondRangeByConstant)
{
BoostingRangeStart = boostingRangeStart;
BoostingRangeEnd = boostingRangeEnd;
ShouldBoostBeyondRangeByConstant = shouldBoostBeyondRangeByConstant;
}
/// <summary> The field value at which boosting starts. </summary>
public double BoostingRangeStart { get; set; }
/// <summary> The field value at which boosting ends. </summary>
public double BoostingRangeEnd { get; set; }
/// <summary> A value indicating whether to apply a constant boost for field values beyond the range end value; default is false. </summary>
public bool? ShouldBoostBeyondRangeByConstant { get; set; }
}
}