【发布时间】:2023-03-25 22:39:01
【问题描述】:
我正在尝试同时使用 qf 和 bf 字段,但是我无法理解分数的结果。请问分数是怎么计算的?
以下是我提出的查询: http://localhost:8983/solr/corename/select?bf=likes^0.8%20created_time^0.8&debugQuery=on&defType=edismax&indent=on&q=Samsung&qf=description^0.8&wt=json
还有我得到的分数
"rawquerystring":"Samsung"
"querystring":"Samsung"
"parsedquery":"(+DisjunctionMaxQuery(((description:samsung)^0.8)) FunctionQuery(date(created_time))^0.8 FunctionQuery(int(likes))^0.8)/no_coord"
"parsedquery_toString":"+((description:samsung)^0.8) (date(created_time))^0.8 (int(likes))^0.8"
"explain":{
"23379598044_10154409629363045":"\n1.19288942E12 = sum of:\n 4.6113086 = weight(description:samsung in 61828) [SchemaSimilarity], result of:\n 4.6113086 = score(doc=61828,freq=1.0 = termFreq=1.0\n), product of:\n 0.8 = boost\n 4.2966447 = idf(docFreq=780, docCount=57329)\n 1.3415436 = tfNorm, computed from:\n 1.0 = termFreq=1.0\n 1.2 = parameter k1\n 0.75 = parameter b\n 13.833522 = avgFieldLength\n 5.2244897 = fieldLength\n 1.19288942E12 = FunctionQuery(date(created_time)), product of:\n 1.49111177E12 = date(created_time)=2017-04-02T05:43:00Z\n 0.8 = boost\n 1.0 = queryNorm\n 22.4 = FunctionQuery(int(likes)), product of:\n 28.0 = int(likes)=28\n 0.8 = boost\n 1.0 = queryNorm\n",
【问题讨论】:
标签: solr