ScoringProfileInput interface

A scoring profile input supporting classic and random scoring.

Extends

Omit<ScoringProfile, "functions">

Properties

functions

Functions used to compute document scores.

Inherited Properties

functionAggregation

A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions. Possible values include: 'sum', 'average', 'minimum', 'maximum', 'firstMatching'

name

The name of the scoring profile.

textWeights

Parameters that boost scoring based on text matches in certain index fields.

Property Details

functions

Functions used to compute document scores.

functions?: ScoringFunctionInput[]

Property Value

Inherited Property Details

functionAggregation

A value indicating how the results of individual scoring functions should be combined. Defaults to "Sum". Ignored if there are no scoring functions. Possible values include: 'sum', 'average', 'minimum', 'maximum', 'firstMatching'

functionAggregation?: ScoringFunctionAggregation

Property Value

Inherited From Omit.functionAggregation

name

The name of the scoring profile.

name: string

Property Value

string

Inherited From Omit.name

textWeights

Parameters that boost scoring based on text matches in certain index fields.

textWeights?: TextWeights

Property Value

Inherited From Omit.textWeights