lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Morus Walter <morus.wal...@tanto-xipolis.de>
Subject Re: Reopen IndexWriter after delete?
Date Wed, 12 Nov 2003 08:25:06 GMT
Otis Gospodnetic writes:
> 
> No, it is not safe.  You should close the IndexWriter, then delete the
> document and close IndexReader, and then get a new IndexWriter and
> continue writing.
> 
IIRC lucene takes care that you do so.
Locking prevents you from having an open IndexWriter and
modify the index with an IndexReader (and vice verse).

Morus


---------------------------------------------------------------------
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