Class ExactStatsCache

  • All Implemented Interfaces:
    Direct Known Subclasses:
    ExactSharedStatsCache, LRUStatsCache

    public class ExactStatsCache
    extends StatsCache
    This class implements exact caching of statistics. It requires an additional round-trip to parse query at shard servers, and return term statistics for query terms (and collection statistics for term fields).

    Global statistics are cached in the current request's context and discarded once the processing of the current request is complete. There's no support for longer-term caching, and each request needs to build the global statistics from scratch, even for repeating queries.