Solr 增强多值日期字段
我有一个 Solr 索引,每个文档都是一个事件的信息。在我的架构中 Schedule 是日期类型的多值字段。 我想知道是否可以增加带有计划日期的文件 (多值字段中的任何日期)在未来并且最接近当前日期? 我正在使用 Dismax 查询和 SolrNet 客户端 api。
I have a Solr index and each document is the information of an Event. In my schema Schedule is a multivalued field of type date.
I am wondering if it is possible to boost the documents with a schedule date
(any of those dates in the multivalued field) in the future and closest to the current date?
I am using Dismax query and SolrNet client api.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用 Solr FunctionQuery -
recip
。函数查询示例:
另请阅读相关性常见问题解答:http://wiki.apache.org/solr/SolrRelevancyFAQ# How_can_I_boost_the_score_of_newer_documents
You can user Solr FunctionQuery -
recip
.Example function query:
Also read relevancy FAQ: http://wiki.apache.org/solr/SolrRelevancyFAQ#How_can_I_boost_the_score_of_newer_documents