MagnitudeScoringFunction interface

Defines a function that boosts scores based on the magnitude of a numeric field.

Extends

Properties

parameters

Parameter values for the magnitude scoring function.

type

Indicates the type of function to use. Valid values include magnitude, freshness, distance, and tag. The function type must be lower case.

Inherited Properties

boost

A multiplier for the raw score. Must be a positive number not equal to 1.0.

fieldName

The name of the field used as input to the scoring function.

interpolation

A value indicating how boosting will be interpolated across document scores; defaults to "Linear".

Property Details

parameters

Parameter values for the magnitude scoring function.

parameters: MagnitudeScoringParameters

Property Value

type

Indicates the type of function to use. Valid values include magnitude, freshness, distance, and tag. The function type must be lower case.

type: "magnitude"

Property Value

"magnitude"

Inherited Property Details

boost

A multiplier for the raw score. Must be a positive number not equal to 1.0.

boost: number

Property Value

number

Inherited From ScoringFunction.boost

fieldName

The name of the field used as input to the scoring function.

fieldName: string

Property Value

string

Inherited From ScoringFunction.fieldName

interpolation

A value indicating how boosting will be interpolated across document scores; defaults to "Linear".

interpolation?: ScoringFunctionInterpolation

Property Value

Inherited From ScoringFunction.interpolation