lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yahootintin.1247...@bloglines.com
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" <lucene-user@jakarta.apache.org
wrote:
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,
until
> 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: lucene-user-unsubscribe@jakarta.apache.org
> For
additional commands, e-mail: lucene-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org


Mime
View raw message