Hi,

when reloading a core, it seems that the execution of firstSearcher and 
newSearcher events will happen after the new core takes over from the old. This 
will effectively stall querying until the caches on the new core are warmed 
(which can take quite a long time on large installations). Is this correctly 
observed, and if so, is there a way to postpone the core swap?

Specs:

solr-spec-version 4.0.0.2011.08.22.14.23.02
solr-impl-version 4.0-SNAPSHOT 1160273M - hudson - 2011-08-22 14:23:02
lucene-spec-version 4.0-SNAPSHOT
lucene-impl-version 4.0-SNAPSHOT 1160273 - hudson - 2011-08-22 14:18:48

from solrconfig.xml:

<query>
 ...
 <useColdSearcher>false</useColdSearcher>
 <maxWarmingSearchers>2</maxWarmingSearchers>

….

  <listener event="firstSearcher" class="solr.QuerySenderListener">
<xi:include href="warming_queries.xml" 
xmlns:xi="http://www.w3.org/2001/XInclude"/>
 </listener>
 <listener event="newSearcher" class="solr.QuerySenderListener" />

</query>


Thanks,

Rikke

Reply via email to