![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
索引
jiang617325814
这个作者很懒,什么都没留下…
展开
-
使用Lucene对建立的索引进行搜索
搜索中要到的类不多: package org.apache.lucene.searcher; import java.io.File; import java.io.IOException; import org.apache.lucene.analysis.standard.StandardAnalyzer; import org.apache.lucene.document.Docum原创 2012-06-24 22:10:42 · 578 阅读 · 0 评论 -
使用Lucene建立索引
最近在看Lucene in Action这本书的原著,第一步就是建立要建立文件索引,当然文件必须为统一的格式,Lucene不支持异构文件。 我练习了书中的listing 1.1:Indexer,由于我使用的是Lucene3.5版本,而书中使用的3.0,3.5和3.0是有一些差异的! package org.apache.lucene.indexer; import java.io.F原创 2012-06-19 17:02:05 · 1826 阅读 · 0 评论