作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
solr wiki FunctionQuery 页面显示 solr 支持按功能排序
Sort By Function
<!> Solr3.1
It is now possible to sort the results by the output of a function. For instance, if an application wanted to sort by distance, it could do:
http://localhost:8983/solr/select?q=*:*&sort=dist(2, point1, point2) desc
最佳答案
是的,可以将自己的/自定义函数查询添加到 solr。
为此,您必须扩展源代码。
举个例子,看看这个:http://www.supermind.org/blog/756/how-to-write-a-custom-solr-functionquery
关于lucene - Solr 是否支持自定义 FunctionQuery?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6787986/
solr wiki FunctionQuery 页面显示 solr 支持按功能排序 Sort By Function Solr3.1 It is now possible to sort the r
我正在尝试将 future 某个特定日期的记录提升到结果的顶部,并使那些过去日期的相关性降低。我看过很多关于如何提高结果的帖子,这些帖子离现在很近,但这并不是我真正需要的。 最佳答案 你想做的是: 了
如果我从 Lucene Java Doc Page 理解正确的话,将 CustomScoreQuery 实例设置为 strict 应将 FunctionQuery 的 FieldSource 值未经修
我是一名优秀的程序员,十分优秀!