APIs and Classes implementing the Stats component used for document frequency calculations.
Class Summary Class Description CachedSearcherStats CollectionStatsModifiable version of
CollectionStatisticsuseful for aggregation of per-shard stats.
ExactSharedStatsCacheThis class implements exact caching of statistics. ExactStatsCacheThis class implements exact caching of statistics. ExactStatsCache.ExactStatsSource LocalStatsCacheDefault implementation that simply ignores global term statistics, and always uses local term statistics. LocalStatsSourceConvenience class that wraps a local
SolrIndexSearcherto provide local statistics.
ExactStatsCachethis 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.
StatsCacheThis class represents a cache of global document frequency information for selected terms. StatsCache.StatsCacheMetrics StatsSourceThe purpose of this class is only to provide two pieces of information necessary to create
Query, that is
TermStatisticsfor a term and
CollectionStatisticsfor the whole collection.
StatsUtilVarious utilities for de/serialization of term stats and collection stats. TermStatsModifiable version of
TermStatisticsuseful for aggregation of per-shard stats.