lucene索引word/pdf/html/txt文件及检索(搜索引擎) ---http://laotu5i0.javaeye.com/blog/515447
<br />因为lucene索引的时候是将String型的信息建立索引的,所以这里必须是将word/pdf/html等文件的内容转化问字符型。 <br />lucene的jar包自己去下载。 <br />首先是建立索引的代码: <br />public class TextFileIndexer { <br /> public static void main(String[] args) throws Exception { <br /> /* 指明要索引文件夹的位置,这里是d
复制链接