mirror of https://github.com/apache/lucene.git
LUCENE-8042: Fix precommit and CHANGES
This commit is contained in:
parent
276e317e94
commit
b5571031ca
|
@ -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.
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue