FreshnessScoringFunction interface
Defines a function that boosts scores based on the value of a date-time field.
- Extends
Properties
parameters | Parameter values for the freshness 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. |
field |
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 freshness scoring function.
parameters: FreshnessScoringParameters
Property Value
type
Polymorphic discriminator, which specifies the different types this object can be
type: "freshness"
Property Value
"freshness"
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