如何在Lucene.NET中更新索引 [英] How to update index in Lucene.NET

查看:102
本文介绍了如何在Lucene.NET中更新索引的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用Lucene.NET在搜索上进行POC.

我触发了一个存储过程,该存储过程从数据库中获取了大约50000条记录.
我将这些记录放入"Lucene索引"中.

现在,当数据库中的记录更改时,如何更新Lucene索引.
删除整个先前的索引并创建一个新索引将花费大量时间.

我想将数据库中的新记录追加到现有索引中.

我该如何实现.
有什么想法吗?

谢谢,
Aneesh

Hi,

I am doing a POC on Search using Lucene.NET.

I fire a stored procedure which fetches around 50000 records from the database.
Thses records I put in the Lucene Index.

Now when the records in database changes, how to update the Lucene index.
Deleting the entire previous indexed and creating a new one will take a lot of time.

I want to append the new records from the database to the existing index.

How can I achieve this.
Any ideas ???

Thanks,
Aneesh

推荐答案

虽然我对Lucene.NET的工作不多,但我相信此链接会为您提供所需的信息:

http://manfredlange.blogspot.com/2010/07/updating-lucene- index-green-version.html [ ^ ]
While I don''t do a lot with Lucene.NET, I believe this link will give you the information you need:

http://manfredlange.blogspot.com/2010/07/updating-lucene-index-green-version.html[^]


这篇关于如何在Lucene.NET中更新索引的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆