| | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | 2 | | // Licensed under the MIT License. |
| | 3 | |
|
| | 4 | | // <auto-generated/> |
| | 5 | |
|
| | 6 | | #nullable disable |
| | 7 | |
|
| | 8 | | namespace Azure.Search.Documents.Indexes.Models |
| | 9 | | { |
| | 10 | | /// <summary> Provides parameter values to a magnitude scoring function. </summary> |
| | 11 | | public partial class MagnitudeScoringParameters |
| | 12 | | { |
| | 13 | | /// <summary> Initializes a new instance of MagnitudeScoringParameters. </summary> |
| | 14 | | /// <param name="boostingRangeStart"> The field value at which boosting starts. </param> |
| | 15 | | /// <param name="boostingRangeEnd"> The field value at which boosting ends. </param> |
| 0 | 16 | | public MagnitudeScoringParameters(double boostingRangeStart, double boostingRangeEnd) |
| | 17 | | { |
| 0 | 18 | | BoostingRangeStart = boostingRangeStart; |
| 0 | 19 | | BoostingRangeEnd = boostingRangeEnd; |
| 0 | 20 | | } |
| | 21 | |
|
| | 22 | | /// <summary> Initializes a new instance of MagnitudeScoringParameters. </summary> |
| | 23 | | /// <param name="boostingRangeStart"> The field value at which boosting starts. </param> |
| | 24 | | /// <param name="boostingRangeEnd"> The field value at which boosting ends. </param> |
| | 25 | | /// <param name="shouldBoostBeyondRangeByConstant"> A value indicating whether to apply a constant boost for fie |
| 0 | 26 | | internal MagnitudeScoringParameters(double boostingRangeStart, double boostingRangeEnd, bool? shouldBoostBeyondR |
| | 27 | | { |
| 0 | 28 | | BoostingRangeStart = boostingRangeStart; |
| 0 | 29 | | BoostingRangeEnd = boostingRangeEnd; |
| 0 | 30 | | ShouldBoostBeyondRangeByConstant = shouldBoostBeyondRangeByConstant; |
| 0 | 31 | | } |
| | 32 | |
|
| | 33 | | /// <summary> The field value at which boosting starts. </summary> |
| 0 | 34 | | public double BoostingRangeStart { get; set; } |
| | 35 | | /// <summary> The field value at which boosting ends. </summary> |
| 0 | 36 | | public double BoostingRangeEnd { get; set; } |
| | 37 | | /// <summary> A value indicating whether to apply a constant boost for field values beyond the range end value; |
| 0 | 38 | | public bool? ShouldBoostBeyondRangeByConstant { get; set; } |
| | 39 | | } |
| | 40 | | } |