lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yonik Seeley" <ysee...@gmail.com>
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.

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message