![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
lucene
yangcunning
这个作者很懒,什么都没留下…
展开
-
Lucene with NRTManager
lucene通过NRTManager这个类来实现近实时搜索,所谓近实时搜索即在索引发生改变时,通 过线程跟踪,在相对很短的时间反映给给用户程序的调用 NRTManager通过管理IndexWriter对象,并将IndexWriter的一些方法(增删改)例如 addDocument,deleteDocument等方法暴露给客户调用,它的操作全部在内存里面,所以如果 你不调用IndexW转载 2012-10-27 19:40:29 · 441 阅读 · 0 评论 -
lucene3.5建立索引和搜索的简单步骤
public class HelloLunce { /** *建立索引 * @throws IOException */ public void buildIndex() throws IOException{ //1:建立索引存放的目录Directory File path = new File("E:/lucene/index"); //原创 2013-03-19 11:53:43 · 529 阅读 · 0 评论