Hello all,

In case of 2.4.1, the reader after reopen, will be warmed before actual use. In 
2.9, public void setMergedSegmentWarmer(IndexWriter.IndexReaderWarmer warmer), 
does warming when we do getReader(). 

If we do getReader() for every request then whether it will reduce the search 
performance? 

Does warming necessarly required in 2.9? If we do warming for the very first 
time is not enough? Do we need to do it on every request?

Regards
Ganesh

----- Original Message ----- 
From: "Yonik Seeley" <yo...@lucidimagination.com>
To: <java-user@lucene.apache.org>
Sent: Tuesday, October 13, 2009 3:42 AM
Subject: Re: Realtime search best practices


Good point on isCurrent - I think it should only be with respect to
the latest index commit point? and we should clarify that in the
javadoc.

[...]
> // but what does the nrtReader say?
> // it does not have access to the most recent commit
> // state, as there's been a commit (with documents)
> // since it was opened. But the nrtReader *has* those
> // documents.

I think we keep it simple - the nrtReader.isCurrent() would return
false after a commit is called.
Yes, isCurrent() is no longer such a great name.

-Yonik
http://www.lucidimagination.com

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

Send instant messages to your online friends http://in.messenger.yahoo.com

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

Reply via email to