On Fri, Jun 27, 2008 at 2:43 PM, Michael McCandless
<[EMAIL PROTECTED]> wrote:
> We could instead keep these SegmentReaders open and reuse them for
> applying deletes.

We discussed caching SegmentReaders in the original buffered deletes issue too
http://issues.apache.org/jira/browse/LUCENE-565

> Then the IndexWriter could present an IndexReader
> (MultiReader) that reads these segments, plus the IndexReader reading
> buffered docs in RAM.  This would basically be a "combined
> IndexWriter / IndexReader".

And all the lucene developers of the world rejoiced :-)

> I think the IndexReader that reads DocumentWriter's RAM buffer would
> still search a point-in-time snapshot of the index, unlike
> InstantiatedIndexReader, and require an explicit reopen() to refresh.

Right.  That provides the most implementation flexibility too (even
w/o such issues as handling delete-by-query).

-Yonik

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to