lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <DCutt...@grandcentral.com>
Subject RE: IndexReader and IndexWriter on the same index
Date Tue, 27 Nov 2001 22:58:00 GMT
> From: Avi Drissman [mailto:avi_drissman@baseview.com]
> 
> But if I need to do a deletion before every addition, then there's 
> the overhead of all those reader and writer creations. There's no way 
> around it?

Batch your deletions, then batch your additions.  If you need these changes
to appear atomically to searchers, do not re-open the IndexReader that
you're using for searching until you have closed the IndexWriter.

Doug

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


Mime
View raw message