Lucene.net 2.9.2 NumericField排序
谁能验证最新的 Lucene.net 2.9.2 是否可以对 NumericField 进行排序(和反向排序)?我有点困惑,特别是反向排序:(
Can anyone verify if the latest Lucene.net 2.9.2 can sort (and reverse sort) NumericField? I am sort of stumped, expecially with the reverse sort :(
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我今天也遇到了同样的问题,经过一段时间的故障排除后,下面的代码可以正常工作。
SortField.INT
很重要,否则整数字段中的排序将不起作用。I also get into the same problem today, the below code is working after troubleshooting for some time.
This is important
SortField.INT
, otherwise the sorting in the integer field is not working.