You can use IndexWriter.unlock(Directory) to forcefully unlock the
index; just be certain the old IndexWriter really is gone before doing
that.
Or, if you have an IndexWriter still open, you could try
IndexWriter.rollback(), which discards all changes and closes the
IndexWriter. Or perhaps IndexW
Hi Mike,
Thanks for Your Reply.
Actually My question is wrong.
I have a large Index with a open IndexWriter.some one unknowlingly deleted
some files in the index and corrupted the index.
Once i get IndexCorruptedException,I will delete the entire Index Folder
and close my indexwriter also and
Use IndexWriter.deleteDocument.
Mike McCandless
http://blog.mikemccandless.com
On Tue, Aug 6, 2013 at 7:38 AM, VIGNESH S wrote:
> Hi,
>
> which is the best way to delete a lucene document in a large index?
>
> --
> Thanks and Regards
> Vignesh Srinivasan
> 9739135640
-
Hi,
which is the best way to delete a lucene document in a large index?
--
Thanks and Regards
Vignesh Srinivasan
9739135640