lucene - 查找由 Lucene 索引的术语列表

标签 lucene

是否可以将 Lucene 索引中所有术语的列表提取为字符串列表?我在文档中找不到该功能。谢谢!

最佳答案

Lucene 3:

  • C#:C# Lucene get all the index
  • java :
    IndexReader indexReader = IndexReader.open(path); 
    TermEnum termEnum = indexReader.terms(); 
    while (termEnum.next()) { 
        Term term = termEnum.term(); 
        System.out.println(term.text()); 
    }
    termEnum.close(); 
    indexReader.close(); 
    
  • Java(特定领域的所有术语):How can I get the list of unique terms from a specific field in Lucene?
  • python :Finding a single fields terms with Lucene (PyLucene)
  • 关于lucene - 查找由 Lucene 索引的术语列表,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11148036/

    相关文章:

    java - Lucene 4.0 API - NRTManager 简单案例使用

    regex - 如何明智地结合 shingles 和 edgeNgram 来提供灵活的全文搜索?

    Solr 单索引 vs Solr 多核

    indexing - 处理现有字段类型的更改?

    java - Lucene 地理距离排序性能

    python - Lucene:返回短语文档出现的最快方法?

    grails - Grails lucene搜索耗费大量时间

    java - 测试 Lucene Query 是否匹配所有文档

    java - hibernate 搜索,现有数据不可搜索

    solr - Solr/Lucene 中的字段长度是如何定义的?