| | | 1 | | // Copyright (c) Microsoft Corporation. All rights reserved. |
| | | 2 | | // Licensed under the MIT License. |
| | | 3 | | |
| | | 4 | | // <auto-generated/> |
| | | 5 | | |
| | | 6 | | #nullable disable |
| | | 7 | | |
| | | 8 | | using System; |
| | | 9 | | |
| | | 10 | | namespace Azure.Search.Documents.Indexes.Models |
| | | 11 | | { |
| | | 12 | | /// <summary> Provides parameter values to a distance scoring function. </summary> |
| | | 13 | | public partial class DistanceScoringParameters |
| | | 14 | | { |
| | | 15 | | /// <summary> Initializes a new instance of DistanceScoringParameters. </summary> |
| | | 16 | | /// <param name="referencePointParameter"> The name of the parameter passed in search queries to specify the ref |
| | | 17 | | /// <param name="boostingDistance"> The distance in kilometers from the reference location where the boosting ra |
| | | 18 | | /// <exception cref="ArgumentNullException"> <paramref name="referencePointParameter"/> is null. </exception> |
| | 14 | 19 | | public DistanceScoringParameters(string referencePointParameter, double boostingDistance) |
| | | 20 | | { |
| | 14 | 21 | | if (referencePointParameter == null) |
| | | 22 | | { |
| | 0 | 23 | | throw new ArgumentNullException(nameof(referencePointParameter)); |
| | | 24 | | } |
| | | 25 | | |
| | 14 | 26 | | ReferencePointParameter = referencePointParameter; |
| | 14 | 27 | | BoostingDistance = boostingDistance; |
| | 14 | 28 | | } |
| | | 29 | | |
| | | 30 | | /// <summary> The name of the parameter passed in search queries to specify the reference location. </summary> |
| | 20 | 31 | | public string ReferencePointParameter { get; set; } |
| | | 32 | | /// <summary> The distance in kilometers from the reference location where the boosting range ends. </summary> |
| | 20 | 33 | | public double BoostingDistance { get; set; } |
| | | 34 | | } |
| | | 35 | | } |