Package org.apache.solr.search.stats
APIs and Classes implementing the Stats component used for document frequency calculations.
-
Class Summary Class Description CollectionStats Modifiable version ofCollectionStatistics
useful for aggregation of per-shard stats.ExactSharedStatsCache This class implements exact caching of statistics.ExactStatsCache This class implements exact caching of statistics.ExactStatsCache.ExactStatsSource LocalStatsCache Default implementation that simply ignores global term statistics, and always uses local term statistics.LocalStatsSource Convenience class that wraps a localSolrIndexSearcher
to provide local statistics.LRUStatsCache UnlikeExactStatsCache
this implementation preserves term stats across queries in a set of LRU caches (with the same life-cycle as SolrIndexSearcher), and based on surface features of a query it determines the need to send additional requests to retrieve local term and collection statistics from shards.StatsCache This class represents a cache of global document frequency information for selected terms.StatsCache.StatsCacheMetrics StatsSource The purpose of this class is only to provide two pieces of information necessary to createWeight
from aQuery
, that isTermStatistics
for a term andCollectionStatistics
for the whole collection.StatsUtil Various utilities for de/serialization of term stats and collection stats.TermStats Modifiable version ofTermStatistics
useful for aggregation of per-shard stats.