【发布时间】:2019-12-13 16:54:05
【问题描述】:
我对 Lucene 8 比较陌生,想了解如何将旧版 Solr 4 评分迁移到 Lucene。这就是目前使用 Solr 4 的方式。
/*
* From the SolrRelevancyFAQ:
* How can I see the 0?
*
* Request that the pseudo-field named "score" be returned by adding it
* to the fl (field list) parameter. The "score" will then appear along
* with the stored fields in returned documents. q=Justice League&fl=*,score
*/
query.setFields("*", "score");
如何使用 Lucene 8 做到这一点?我宁愿保持简单。 有没有办法像上面那样请求返回的伪字段? 谢谢0
【问题讨论】: