相关疑难解决方法(0)

Solr函数查询:如何使用"score"字段创建自定义评分

经过广泛搜索并遇到诸如此类的答案 -

Solr:按分数和int字段值排序

使用函数查询在Solr中提升分数

我仍然无法解决以下问题:

如何使用文档的"得分"字段创建新的评分函数并相应地对结果进行排名.像这样的东西 -

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)

lucene solr function-query

9
推荐指数
2
解决办法
7727
查看次数

如何在solr中增加字段

我已经预先确定了提升.我在solr索引中有一个字段叫做boost1.此提升字段的值将为1到10,类似于Google PR排名.这是应该应用于在solr中运行的每个查询的提升.这是我索引中的字段

  • ID
  • 标题
  • 文本
  • 助推

boost字段应该适用于每个查询.我正在尝试实现类似于Google PR排名的功能.有没有办法用solr做到这一点?

lucene solr solrnet dismax edismax

7
推荐指数
1
解决办法
3万
查看次数

标签 统计

lucene ×2

solr ×2

dismax ×1

edismax ×1

function-query ×1

solrnet ×1