Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我在字段 A 中搜索一个查询,并且我想从我的索引中检索相应的字段 B 和 C,我应该怎么做呢?我正在使用 Lucene 3.6.0。
您的查询结果将作为一组文档而不是字段返回。获得文档后,您可以加载您感兴趣的任何字段内容。
可能值得关注的一件事是确保您的字段已“存储”。
祝你好运,