diff --git a/lucene/src/java/org/apache/lucene/search/function/CustomScoreProvider.java b/lucene/src/java/org/apache/lucene/search/function/CustomScoreProvider.java index e956707afe9..c80422f3550 100644 --- a/lucene/src/java/org/apache/lucene/search/function/CustomScoreProvider.java +++ b/lucene/src/java/org/apache/lucene/search/function/CustomScoreProvider.java @@ -20,6 +20,7 @@ package org.apache.lucene.search.function; import java.io.IOException; import org.apache.lucene.index.IndexReader.AtomicReaderContext; +import org.apache.lucene.index.IndexReader; // for javadocs import org.apache.lucene.search.Explanation; import org.apache.lucene.search.FieldCache; // for javadocs @@ -28,7 +29,7 @@ import org.apache.lucene.search.FieldCache; // for javadocs * {@link CustomScoreQuery#getCustomScoreProvider}, if you want * to modify the custom score calculation of a {@link CustomScoreQuery}. *

Since Lucene 2.9, queries operate on each segment of an index separately, - * so the protected {@link #reader} field can be used to resolve doc IDs, + * so the protected {@link #context} field can be used to resolve doc IDs, * as the supplied doc ID is per-segment and without knowledge * of the IndexReader you cannot access the document or {@link FieldCache}. *