public interface QueryCache
LRUQueryCache| Modifier and Type | Method and Description |
|---|---|
Weight |
doCache(Weight weight,
QueryCachingPolicy policy)
Return a wrapper around the provided
weight that will cache
matching docs per-segment accordingly to the given policy. |
Weight doCache(Weight weight, QueryCachingPolicy policy)
weight that will cache
matching docs per-segment accordingly to the given policy.
NOTE: The returned weight will only be equivalent if scores are not needed.Collector.needsScores()Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.