Search in sources :

Example 1 with LocalStatsCache

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;
}
Also used : LocalStatsCache(org.apache.solr.search.stats.LocalStatsCache) StatsCache(org.apache.solr.search.stats.StatsCache) LocalStatsCache(org.apache.solr.search.stats.LocalStatsCache)

Aggregations

LocalStatsCache (org.apache.solr.search.stats.LocalStatsCache)1 StatsCache (org.apache.solr.search.stats.StatsCache)1