Search in sources :

Example 1 with Warmer

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());
    }
}
Also used : Warmer(com.yelp.nrtsearch.server.luceneserver.warming.Warmer) SimpleMergedSegmentWarmer(org.apache.lucene.index.SimpleMergedSegmentWarmer) LuceneServerConfiguration(com.yelp.nrtsearch.server.config.LuceneServerConfiguration) WarmerConfig(com.yelp.nrtsearch.server.luceneserver.warming.WarmerConfig)

Aggregations

LuceneServerConfiguration (com.yelp.nrtsearch.server.config.LuceneServerConfiguration)1 Warmer (com.yelp.nrtsearch.server.luceneserver.warming.Warmer)1 WarmerConfig (com.yelp.nrtsearch.server.luceneserver.warming.WarmerConfig)1 SimpleMergedSegmentWarmer (org.apache.lucene.index.SimpleMergedSegmentWarmer)1