lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <>
Subject RE: IndexReader and IndexWriter on the same index
Date Tue, 27 Nov 2001 22:58:00 GMT
> From: Avi Drissman []
> 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.


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

View raw message