Solr索引时间在文档日期上的提升 [英] Solr index time boost on document date

查看:105
本文介绍了Solr索引时间在文档日期上的提升的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试为Wiki编制索引(使用对Wiki数据库的直接访问),并尝试负面地增加文档日期(以使旧文档在结果中显示得更低).有一个很棒的solr-wiki页面,其中包含关于促进和相关主题的信息:

I'm trying to index a wiki (using a direct access to the wiki db) and trying to negatively boost on document date (so that the old documents appear further down in the results). There is a great solr-wiki page on boosting and related topics:

http://wiki.apache.org/solr/SolrRelevancyFAQ

它只是说要执行以下操作:

It simply says to do the following:

对新文档使用更大的索引时间"

"Use an index-time boost that is larger for newer documents"

但是如何以及在哪里?我必须更改solr配置的哪一部分才能使用索引时间提升?我是否需要调整DATA导入处理程序?

But how and where? Which part of the solr configuration do I have to change to use an index-time boost? Do I have to adapt the DATA import handler?

推荐答案

IMO,您不应该为日期使用索引时间提升.
如果您执行索引时间提升,则提升将固定存储在索引中
查询时间提升将为您提供提升灵活性,并在运行时更改提升而无需重新编制索引

IMO you should not use an index time boost for date.
If you do an index time boost, the boost is fixed stored in the index
Query time boost will provide you the flexibility to boost as well as change the boost at runtime without needing re-indexing

您可以使用查询时间增加,该时间将始终根据当前日期进行增加.

You can use Query time boost which will always boost according to the current date.

这篇关于Solr索引时间在文档日期上的提升的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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