Package version:

Interface FreshnessScoringFunction

Defines a function that boosts scores based on the value of a date-time field.

interface FreshnessScoringFunction {
    boost: number;
    fieldName: string;
    interpolation?: ScoringFunctionInterpolation;
    parameters: FreshnessScoringParameters;
    type: "freshness";
}

Hierarchy (view full)

Properties

boost: number

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

fieldName: string

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

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

Parameter values for the freshness scoring function.

type

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