加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 资源网站 > 资源 > 正文

lucene – dismax solr请求处理程序MM,PS和Q.ALT

发布时间:2020-12-14 16:43:23 所属栏目:资源 来源:网络整理
导读:我正在测试dismax requesthandler,我试图自定义mm(最小匹配)参数(我已经查看了文档) str name="mm" 2-2 3-70% 5-50% /str int name="ps"100/int str name="q.alt"*:*/str 我有3个问题: mm,我理解它的作用,我想验证我的参数是否正常, correct me if im wrong
我正在测试dismax requesthandler,我试图自定义mm(最小匹配)参数(我已经查看了文档)
<str name="mm">
 2<-2 3<-70% 5<-50%  
 </str>
 <int name="ps">100</int>
 <str name="q.alt">*:*</str>

我有3个问题:

> mm,我理解它的作用,我想验证我的参数是否正常,

correct me if im wrong
2<-2 3<-70% 5<-50% stands for ? :

  • if 1 or 2 terms match 100% of them
  • if 3 to 4 match only 70% of them
  • if 5 or more match only 50%

> ps:这个参数是什么?这是强制性的吗?
> q.alt:同样我不明白那个的实用性.

你能为我提供DisMax最佳配置的一些建议吗?

谢谢 !

解决方法

1:你的字符串会转换为
1-2 terms: match all terms
3 terms: total number of terms - 2 must match (i.e. 1 term must match :)
4-5 terms: 70% of the terms must match 
6+ terms: 50% of the terms must match

mm-string来实现你的要求

2<%70 4<%50

可以找到一个非常好的mm字符串资源here.

2:pf参数用于基于彼此非常接近的查询术语来提高文档相关性(而不是分散在整个文档中).

3:q.alt参数用作客户端未提供任何搜索条件的情况的后备查询.在我的解释中,如果您不进行任何客户端查询处理/转换,则可以使用它,但可能还有其他实际用途.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读