mirror of
https://github.com/apache/lucene.git
synced 2025-02-07 10:38:40 +00:00
Add javadoc note in DoubleValuesSource (see LUCENE-10258) (#490)
This commit is contained in:
parent
c5b5fd641b
commit
8a03d2ffc9
@ -326,7 +326,13 @@ public abstract class DoubleValuesSource implements SegmentCacheable {
|
||||
}
|
||||
}
|
||||
|
||||
/** Returns a DoubleValues instance that wraps scores returned by a Scorer */
|
||||
/**
|
||||
* Returns a DoubleValues instance that wraps scores returned by a Scorer.
|
||||
*
|
||||
* <p>Note: If you intend to call {@link Scorable#score()} on the provided {@code scorer}
|
||||
* separately, you may want to consider wrapping it with {@link
|
||||
* ScoreCachingWrappingScorer#wrap(Scorable)} to avoid computing the actual score multiple times.
|
||||
*/
|
||||
public static DoubleValues fromScorer(Scorable scorer) {
|
||||
return new DoubleValues() {
|
||||
@Override
|
||||
|
Loading…
x
Reference in New Issue
Block a user