Share via


ScoringFunction Class

Definition

Abstract base class for functions that can modify document scores during ranking. https://docs.microsoft.com/rest/api/searchservice/Add-scoring-profiles-to-a-search-index

public class ScoringFunction
type ScoringFunction = class
Public Class ScoringFunction
Inheritance
ScoringFunction
Derived

Constructors

ScoringFunction()

Initializes a new instance of the ScoringFunction class.

ScoringFunction(String, Double, Nullable<ScoringFunctionInterpolation>)

Initializes a new instance of the ScoringFunction class.

Properties

Boost

Gets or sets a multiplier for the raw score. Must be a positive number not equal to 1.0.

FieldName

Gets or sets the name of the field used as input to the scoring function.

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'

Methods

Validate()

Validate the object.

Applies to