该类MatchAllDocsQuery
看起来像您需要检索所有文档:https://lucene.apache.org/core/4_4_0/core/org/apache/lucene/search/MatchAllDocsQuery.html
我不知道您的 Lucene 版本是否匹配,但1处的答案可能对您有用。有关包括另一种方法的另一个线程,请参阅2。
是否可以遍历存储在 Lucene Index 中的文档?
http://lucene.472066.n3.nabble.com/Iterating-over-all-documents-in-an-index-td2480114.html
归档时间: |
|
查看次数: |
22063 次 |
最近记录: |