lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ganesh" <emailg...@yahoo.co.in>
Subject Re: Realtime search best practices
Date Tue, 13 Oct 2009 09:23:42 GMT
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" <yonik@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-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org

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

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


Mime
View raw message