lucene删除记录,已弃用? [英] lucene delete record, deprecated?

查看:153
本文介绍了lucene删除记录,已弃用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在研究删除lucene中的文档时,我已经证明我使用了IndexReaders delete()方法,传入了文档id。现在我确实需要这样做,看起来lucene目前不支持这种方法,而且我很难找到目前这样做的方法。

When doing research on deleting documents in lucene I have been shown to use the IndexReaders delete() method, passing in the document id. Now that I actually need to do this, it appears that lucene currently does not support this method, and I have had very little luck in finding the current way to do this.

任何想法?

推荐答案

现在删除可以用IndexWriter

now the deletions can be done with IndexWriter

http://lucene.apache.org/java/3_0_2/api/all/org/apache/lucene/index/IndexWriter.html

这篇关于lucene删除记录,已弃用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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