在MoreLikeThis Solr请求处理程序中提升最近的项目

时间:2011-08-09 13:02:45

标签: solr morelikethis

我想提高我的MoreLikeThis结果取决于我正在使用的url创建日期(desc)是

http://localhost:9090/solr/core0/select/?q=power&version=2.2&start=0&rows=10&indent=on&mlt=true&mlt.fl=title,body&fl=content_id,title,seourl,cdate&mlt.count=5

但是我从这个网址得到的结果就像

  1. 当q = power时,如果结果是2008年的年份,那么我得到More More这个结果仅用于功率但是在2008年它并没有给我最近类似的结果。

2 个答案:

答案 0 :(得分:0)

你确定,MLT可用吗? 如果为(默认)查询字段激活termVector,请查看。在schema.xml中查找termVectors="true"并设置,如果不是。

看看这个: - > http://wiki.apache.org/solr/MoreLikeThis#TermVectors.2C_Analyzers_and_MoreLikeThis

顺便说一下:你的网址没有提升任何东西。

为了提升这一点:http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents

答案 1 :(得分:0)

  

为了提升这一点:http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents

SolrRelevancy函数只能与SearchHandler一起使用,我不知道如何使用相关/增强函数与其他处理程序。

相关问题