Package version:

Defines weights on index fields for which matches should boost scoring in search queries.

interface TextWeights {
    weights: {
        [propertyName: string]: number;
    };
}

Properties

Properties

weights: {
    [propertyName: string]: number;
}

The dictionary of per-field weights to boost document scoring. The keys are field names and the values are the weights for each field.