【问题标题】:Reading document in Lucene在 Lucene 中阅读文档
【发布时间】:2010-10-16 11:49:52
【问题描述】:

我在 Lucene 中的索引文档已经分配了多个城市......即。 doc.Add(new Field("city", city1.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); doc.Add(new Field("city", city2.Trim(), Field.Store.YES, Field.Index.TOKENIZED)); 等等

如何在执行 Lucene 搜索查询后遍历它们并读取值?

谢谢。

【问题讨论】:

    标签: lucene lucene.net


    【解决方案1】:

    为具有多个值的存储字段调用Document.getValues

    【讨论】:

      猜你喜欢
      • 2011-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-07-04
      • 1970-01-01
      • 1970-01-01
      • 2010-09-10
      相关资源
      最近更新 更多