Package version:

Interface MagnitudeScoringParameters

Provides parameter values to a magnitude scoring function.

interface MagnitudeScoringParameters {
    boostingRangeEnd: number;
    boostingRangeStart: number;
    shouldBoostBeyondRangeByConstant?: boolean;
}

Properties

boostingRangeEnd: number

The field value at which boosting ends.

boostingRangeStart: number

The field value at which boosting starts.

shouldBoostBeyondRangeByConstant?: boolean

A value indicating whether to apply a constant boost for field values beyond the range end value; default is false.