【问题标题】:Boost recent item in MoreLikeThis Solr request handler在 MoreLikeThis Solr 请求处理程序中提升最近的项目
【发布时间】:2011-08-09 13:02:45
【问题描述】:

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

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 年,那么我得到的 MorelikeThis 结果仅适用于电源,但适用于 2008 年,并且没有给我最近的类似结果。

【问题讨论】:

    标签: solr morelikethis


    【解决方案1】:

    您确定 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

    【讨论】:

    • 这如何提升 MLT 结果?是否可以对 MLT 结果进行提升或排序?
    【解决方案2】:

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

    SolrRelevancy 函数只能与 SearchHandler 一起使用,我不知道有什么方法可以将相关性/提升函数与其他处理程序一起使用。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-01-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-07-13
      • 1970-01-01
      相关资源
      最近更新 更多