On Thu, May 28, 2009 at 3:30 PM, Michael McCandless
<luc...@mikemccandless.com> wrote:
> This is exactly why we added IndexReaderWarmer -- it pre-warms a newly
> merged segment before committing to SegmentInfos.
>
> So, while such warming is happening, if getReader() is called, the
> returned reader will still read the old segments.

I don't see how this helps turnaround time from document addition to
making it searchable.

Using the old reader until the new one is "ready" (however that's
defined) can easily be done at the application level (like Solr and
others do it).  It seems like getReader() should block until it can
return a reader containing all of the documents previously added...
that gives the most power to the application.

-Yonik
http://www.lucidimagination.com

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

Reply via email to