- All Known Implementing Classes:
LRUQueryCache
public interface QueryCache
A cache for queries.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondoCache
(Weight weight, QueryCachingPolicy policy) Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
.
-
Method Details
-
doCache
Return a wrapper around the providedweight
that will cache matching docs per-segment accordingly to the givenpolicy
. NOTE: The returned weight will only be equivalent if scores are not needed.- See Also:
-