lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: When are deletions permanent?
Date Mon, 07 Feb 2005 22:51:26 GMT
When you close the IndexReader you know the delete is commited to disk.  I
believe calling the "commit" method will also guarantee that all changes are
written to disk.  

--- Lucene Users List" <
Hi everyone,
> I need to "update a document" in Lucene. I already
know that for that
> I need to do a delete (IndexReader) and then an add
(IndexWriter). I
> also know that the deletion means been marked as deleted,
> optimize().
> My question is, when am I SURE that the mark is
"commited" to disk? I
> mean, suppose that there is a crash while Im doing
a deletion. Could
> it be that when I recover and check Lucene, the item
is still there?
> At which point Im 100% sure the deletion is permanent?

> What about adds?
> Thanks,
> Christian
> ---------------------------------------------------------------------

> To unsubscribe, e-mail:
> For
additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message