Class StatsCache

  • All Implemented Interfaces:
    Direct Known Subclasses:
    ExactStatsCache, LocalStatsCache

    public abstract class StatsCache
    extends Object
    implements PluginInfoInitialized
    This class represents a cache of global document frequency information for selected terms. This information is periodically updated from all shards, either through scheduled events of some kind, or on every request when there is no global stats available for terms involved in the query (or if this information is stale due to changes in the shards).

    There are instances of this class at the aggregator node (where the partial data from shards is aggregated), and on each core involved in a shard request (where this data is maintained and updated from the central cache).