lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <>
Subject Re: [jira] Commented: (LUCENE-565) Supporting deleteDocuments in IndexWriter (Code and Performance Results Provided)
Date Fri, 07 Jul 2006 17:43:27 GMT
> 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.


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

View raw message