public interface QueryCachingPolicy
|Modifier and Type||Field and Description|
This policy is inefficient as caching too aggressively disables the ability to skip non-interesting documents. See
void onUse(Query query)
boolean shouldCache(Query query) throws IOException
Queryis worth caching. This method will be called by the
QueryCacheto know whether to cache. It will first attempt to load a
DocIdSetfrom 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.
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.