增强 Solr 范围查询
有没有一种方法可以基于 solr 中的范围查询进行提升。
我尝试将提升添加到范围的末尾,但它似乎并未将提升应用于分数。我运行的查询没有使用“(: ||”,以确保我得到的结果既在范围之内,又在范围之外。分数反映了正在发生提升,但项目与查询的提升部分相匹配的部分不会获得额外分数
Smaple 查询:
q=lastName:(Smith) (*:* || dob:[1980-09-30T12:09:42.3804564-07:00Z TO 1983-09-30T12:09:42.3844564-07:00Z]^100)
有谁知道如何让 solr 将提升字段合并到结果分数中?
Is there a way to boost based on a range query in solr.
I've tried adding the boost to the end of the range, but it doesn't seem to apply the boost to the score. I've run the query without the "(: ||" to ensure that I'm getting results that are both inside and outside the range. The score reflects that boosting is taking place, but the items that match the boosted portion of the query do not recieve extra points.
Smaple Query:
q=lastName:(Smith) (*:* || dob:[1980-09-30T12:09:42.3804564-07:00Z TO 1983-09-30T12:09:42.3844564-07:00Z]^100)
Does anyone know how I can get solr to incorporate the boosted field into the result scores?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我对此相当陌生,但我认为您会使用 boost 查询来提升这些结果:
I'm fairly new to this, but I think you would use a boost query to elevate those results: