LUCENE-8042: Fix precommit and CHANGES

This commit is contained in:
Alan Woodward 2017-11-10 17:10:13 +00:00
parent 276e317e94
commit b5571031ca
2 changed files with 9 additions and 2 deletions

View File

@ -45,8 +45,10 @@ Improvements
API Changes
* LUCENE-8017: Weight now exposes a getCacheHelper() method to help query caches
determine whether or not a query can be cached. (Alan Woodward)
* LUCENE-8017, LUCENE-8042: Weight, DoubleValuesSource and related objects
now implement a SegmentCacheable interface, with a single method
isCacheable(LeafReaderContext) determining whether or not the object may
be cached against a LeafReader. (Alan Woodward, Robert Muir)
* LUCENE-8038: Payload factors for scoring in PayloadScoreQuery are now
calculated by a PayloadDecoder, instead of delegating to the Similarity.

View File

@ -132,6 +132,11 @@ public class CompletionWeight extends Weight {
throw new UnsupportedOperationException();
}
/**
* This object can be cached
*
* @see org.apache.lucene.search.SegmentCacheable#isCacheable(LeafReaderContext)
*/
@Override
public boolean isCacheable(LeafReaderContext ctx) {
return true;