lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <>
Subject Re: Realtime Search
Date Fri, 09 Jan 2009 20:05:06 GMT
I realize we aren't adding read functionality to the Writer, but it  
would be coupling the Writer to the Reader nonetheless.  I understand  
it is brainstorming (like I said, not trying to distract from the  
discussion), just saying that if the Reader and the Writer both need  
access to the underlying data structures, then we should refactor to  
make that possible, not just glom the Reader onto the Writer.  I  
suspect if that is done, anyway, that it may make the bigger picture a  
bit clearer, too.

On Jan 9, 2009, at 2:53 PM, Michael McCandless wrote:

> Grant Ingersoll wrote:
>> We've spent a lot of time up until now getting write functionality  
>> out of the Reader, and now we are going to add read functionality  
>> into the Writer?
> Well... we're not really adding read functionality into IW; instead,
> we are asking IW to open the reader for us, except the reader is
> provided the SegmentInfos it should use from IW (instead of trying to
> find the latest segments_N file in the Directory).
> Ie, what IW.getReader returns is an otherwise normal
> MultiSegmentReader.
> The goal is to allow an IndexReader to access segments flushed but
> not yet committed by IW.  These segments are normally "private" to IW,
> in memory in its SegmentInfos instance.
> And this is all just thinking-out-loud-brainstorming.  There are  
> still many
> details to work through...
> Mike
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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

View raw message