根据Elasticsearch文档https://www.elastic.co/guide/en/elasticsearch/reference/6.7/search-suggesters-completion.html,分数是权重吗?
我创建一个这样的示例,权重为5
POST music2/name
{
"suggest" : {
"input": [ "百频", "bp","baipin" ],
"weight" : 5
}
}
但是当我查询时,会得到如下结果:
"suggest": {
"my-suggest": [
{
"text": "百度视频",
"offset": 0,
"length": 4,
"options": [
{
"text": "百度视频",
"score": 65
}
]
}
]
}
分数是65,如何计算?为什么不相等的体重?
非常感谢!