Uses of Interface
org.apache.lucene.search.QueryCachingPolicy
-
Uses of QueryCachingPolicy in org.apache.lucene.search
Modifier and TypeClassDescriptionclass
AQueryCachingPolicy
that tracks usage statistics of recently-used filters in order to decide on which filters are worth caching.Modifier and TypeMethodDescriptionstatic QueryCachingPolicy
IndexSearcher.getDefaultQueryCachingPolicy()
Expert: Get the defaultQueryCachingPolicy
.IndexSearcher.getQueryCachingPolicy()
Return the query cache of thisIndexSearcher
.Modifier and TypeMethodDescriptionLRUQueryCache.doCache
(Weight weight, QueryCachingPolicy policy) QueryCache.doCache
(Weight weight, QueryCachingPolicy policy) Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
.static void
IndexSearcher.setDefaultQueryCachingPolicy
(QueryCachingPolicy defaultQueryCachingPolicy) Expert: set the defaultQueryCachingPolicy
instance.void
IndexSearcher.setQueryCachingPolicy
(QueryCachingPolicy queryCachingPolicy) Set theQueryCachingPolicy
to use for query caching.