When one interleaves adds and deletes, it isn't the case that indexreaders and indexwriters need to be opened and closed each interleave.
To clarify, higher level (application level) adds and deletes can be managed at a lower level such that index readers and writers aren't continually opened and closed. There are a few ways to do this: - modify IndexWriter, as this patch does - implement add/delete interleaving as a higher level class The big question is, what kind of efficiencies do you get by putting this functionallity in IndexWriter vs a higher level class that uses IndexWriters and IndexReaders? Unless there is a clear performance win, I'd prefer leaving IndexWriter simpler. -Yonik --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]