Lucene
阳光宅男
to be best
展开
-
Lucene3.1 之读取txt文本文档内容
本来不想写的,因为网络上Lucene的资料太多了,不过,既然自己也在学的话,就当作自己的一份笔记,记录一点东西。原创 2011-05-28 15:50:00 · 1863 阅读 · 0 评论 -
Lucene3.0.2之IndexWriter之updateDocument无法更新索引之解决方法
很郁闷的搞了好几天,各大搜索引擎都用遍了,还差点对互联网绝望。到最终发现是自己错了。我用IndexWriter 追加索引(IndexWriter.addDocument),删除索引(IndexWriter.deleteDocuments)都可以实现,但是用IndexWriter.updateDocument 来做索引的更新就一直实现不了。代码如下:Document doc = new原创 2011-06-17 14:40:00 · 4818 阅读 · 2 评论