use of com.yelp.nrtsearch.server.luceneserver.warming.Warmer in project nrtsearch by Yelp.
the class IndexState method initWarmer.
public void initWarmer(Archiver archiver) {
LuceneServerConfiguration configuration = globalState.getConfiguration();
WarmerConfig warmerConfig = configuration.getWarmerConfig();
if (warmerConfig.isWarmOnStartup() || warmerConfig.getMaxWarmingQueries() > 0) {
this.warmer = new Warmer(archiver, configuration.getServiceName(), name, warmerConfig.getMaxWarmingQueries());
}
}
Aggregations