DistanceScoringFunction Class
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 a function that boosts scores based on distance from a geographic location. https://docs.microsoft.com/rest/api/searchservice/Add-scoring-profiles-to-a-search-index
[Newtonsoft.Json.JsonObject("distance")]
public class DistanceScoringFunction : Microsoft.Azure.Search.Models.ScoringFunction
[<Newtonsoft.Json.JsonObject("distance")>]
type DistanceScoringFunction = class
inherit ScoringFunction
Public Class DistanceScoringFunction
Inherits ScoringFunction
- Inheritance
- Attributes
-
Newtonsoft.Json.JsonObjectAttribute
Constructors
DistanceScoringFunction() |
Initializes a new instance of the DistanceScoringFunction class. |
DistanceScoringFunction(String, Double, DistanceScoringParameters, Nullable<ScoringFunctionInterpolation>) |
Initializes a new instance of the DistanceScoringFunction class. |
DistanceScoringFunction(String, Double, String, Double, Nullable<ScoringFunctionInterpolation>) |
Initializes a new instance of the DistanceScoringFunction class. |
Properties
Boost |
Gets or sets a multiplier for the raw score. Must be a positive number not equal to 1.0. (Inherited from ScoringFunction) |
FieldName |
Gets or sets the name of the field used as input to the scoring function. (Inherited from ScoringFunction) |
Interpolation |
Gets or sets a value indicating how boosting will be interpolated across document scores; defaults to "Linear". Possible values include: 'linear', 'constant', 'quadratic', 'logarithmic' (Inherited from ScoringFunction) |
Parameters |
Gets or sets parameter values for the distance scoring function. |
Methods
Validate() |
Validate the object. |
Applies to
Azure SDK for .NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기