Solr Dismax配置以提高得分 [英] Solr Dismax Config for Boost Scoring

查看:73
本文介绍了Solr Dismax配置以提高得分的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在这里看到了许多这样的主题,但是仍然难以实现.就我而言,我需要执行以下操作:

I've seen many of this topics here but still confusing to implement it. In my case i need to do these:

  1. 搜索标题&中的某些短语文字并给出标题^ 3,文字^ 1
  2. 基于#1中的结果,我需要通过修改时间来提高结果

我用不同的结果尝试了这些

i've tried these with different results:

/solr/select
?q={!boost b=$dateboost v=$qq defType=dismax}
&dateboost=recip(ms(NOW/HOUR,modified),86400000,1,1)
&qq=video
&qf=title^3+text
&pf=title^3+text
&debugQuery=true

和普通查询在solrconfig.xml中具有不同的设置

And Normal Query with different setting in solrconfig.xml

<str name="qf">title^3 text</str>
<str name="pf">title^3 text</str>
<str name="bf">recip(ms(NOW/HOUR,modified),86400000,1,1)</str>

我更喜欢在solrconfig中默认设置增强功能,谢谢高级.

I prefer to have the boost set by default in solrconfig, thanks in advanced.

推荐答案

最后我使用了第一个选项,因为当使用!boost时,solrconfig.xml中的dismax处理程序配置将被忽略.

Finally i used the first option, since when using !boost the dismax handler config in solrconfig.xml is being ignored.

这篇关于Solr Dismax配置以提高得分的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆