Package version:

Defines parameters for a search index that influence scoring in search queries.

interface ScoringProfile {
    functionAggregation?: ScoringFunctionAggregation;
    functions?: ScoringFunction[];
    name: string;
    textWeights?: TextWeights;
}

Properties

functionAggregation?: ScoringFunctionAggregation

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'

functions?: ScoringFunction[]

The collection of functions that influence the scoring of documents.

name: string

The name of the scoring profile.

textWeights?: TextWeights

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