DistanceScoringFunction interface

Defines a function that boosts scores based on distance from a geographic location.

Extends

Properties

parameters

Parameter values for the distance scoring function.

type

Polymorphic discriminator, which specifies the different types this object can be

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 distance scoring function.

parameters: DistanceScoringParameters

Property Value

type

Polymorphic discriminator, which specifies the different types this object can be

type: "distance"

Property Value

"distance"

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 BaseScoringFunction.boost

fieldName

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

fieldName: string

Property Value

string

Inherited From BaseScoringFunction.fieldName

interpolation

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

interpolation?: ScoringFunctionInterpolation

Property Value

Inherited From BaseScoringFunction.interpolation