经过广泛搜索并遇到诸如此类的答案 -
我仍然无法解决以下问题:
如何使用文档的"得分"字段创建新的评分函数并相应地对结果进行排名.像这样的东西 -
new_score =得分*my_other_field
当前查询 -
http://localhost:8984/solr/suggest_new/select?q=tom&wt=json&indent=true&bq=_val_:"product(score,count_of_searches)"
Run Code Online (Sandbox Code Playgroud)
这是我在Elasticsearch中所做的事情 -
"script_score" : {
"script" : "_score * doc['my_numeric_field'].value"
}
Run Code Online (Sandbox Code Playgroud)
请帮助/指出正确的链接.非常感谢 !(注:Solr版本:4.10.4)
我已经预先确定了提升.我在solr索引中有一个字段叫做boost1.此提升字段的值将为1到10,类似于Google PR排名.这是应该应用于在solr中运行的每个查询的提升.这是我索引中的字段
boost字段应该适用于每个查询.我正在尝试实现类似于Google PR排名的功能.有没有办法用solr做到这一点?