use of org.apache.solr.search.stats.LocalStatsCache in project lucene-solr by apache.
the class SolrCore method initStatsCache.
private StatsCache initStatsCache() {
final StatsCache cache;
PluginInfo pluginInfo = solrConfig.getPluginInfo(StatsCache.class.getName());
if (pluginInfo != null && pluginInfo.className != null && pluginInfo.className.length() > 0) {
cache = createInitInstance(pluginInfo, StatsCache.class, null, LocalStatsCache.class.getName());
log.debug("Using statsCache impl: " + cache.getClass().getName());
} else {
log.debug("Using default statsCache cache: " + LocalStatsCache.class.getName());
cache = new LocalStatsCache();
}
return cache;
}
Aggregations