BaseScoringFunction interface
可在排名期間修改檔分數的函式基底類型。
屬性
| boost | 原始分數的乘數。 必須是不等於 1.0 的正數。 |
| field |
做為評分函式輸入的功能變數名稱。 |
| interpolation | 值,指出如何跨檔分數插補提升;預設為 “Linear”。 |
| type | 多型歧視性,指定這個物件可以是的不同類型 |
屬性詳細資料
boost
原始分數的乘數。 必須是不等於 1.0 的正數。
boost: number
屬性值
number
fieldName
做為評分函式輸入的功能變數名稱。
fieldName: string
屬性值
string
interpolation
值,指出如何跨檔分數插補提升;預設為 “Linear”。
interpolation?: ScoringFunctionInterpolation
屬性值
type
多型歧視性,指定這個物件可以是的不同類型
type: "distance" | "freshness" | "magnitude" | "tag"
屬性值
"distance" | "freshness" | "magnitude" | "tag"