QueryCachingPolicy
interface QueryCachingPolicy
A policy defining which filters should be cached.
Implementations of this class must be thread-safe.
See also
Inheritors
Functions
Link copied to clipboard
Whether the given Query is worth caching. This method will be called by the [ ] to know whether to cache. It will first attempt to load a DocIdSet from the cache. If it is not cached yet and this method returns true then a cache entry will be generated. Otherwise an uncached scorer will be returned.