@@ -162,7 +162,7 @@ public final class FieldStats
162162 private volatile double [] termWeights ;
163163
164164 /** The scorer used to calculate {@link #termWeights}. */
165- private volatile TermScorer termWeightsScorer ;
165+ private volatile IdfTermScorer termWeightsScorer ;
166166
167167 /**
168168 * Creates an immutable statistics object from already-loaded arrays and derived scalars.
@@ -301,7 +301,7 @@ public static void build(final IndexReader reader, final Path sideDir, final Str
301301 * <p>
302302 * When {@code focusDocs} is non-null, the focus subset's token total and document
303303 * count are derived from the bitset and {@link #docTokens}, then passed to
304- * {@link TermScorer #focus}. Each posting visit then tells the scorer whether the
304+ * {@link IdfTermScorer #focus}. Each posting visit then tells the scorer whether the
305305 * document is in focus, and the scorer accumulates into focus or rest separately.
306306 * </p>
307307 *
@@ -312,7 +312,7 @@ public static void build(final IndexReader reader, final Path sideDir, final Str
312312 * @throws IOException if term or postings iteration fails
313313 * @throws IllegalStateException if the field has no terms or no frequencies
314314 */
315- public double [] buildTermWeights (final IndexReader reader , final TermScorer scorer )
315+ public double [] buildTermWeights (final IndexReader reader , final IdfTermScorer scorer )
316316 throws IOException
317317 {
318318 Objects .requireNonNull (reader , "reader" );
@@ -917,7 +917,7 @@ public static TermStats termStats(final IndexReader reader, final String field,
917917 *
918918 * @param termId dense term id in {@code [0, vocabSize)}
919919 * @return cached weight, or {@code 0.0} for the absent-term sentinel (id 0)
920- * @throws IllegalStateException if {@link #termWeights(IndexReader, TermScorer )} has not been called
920+ * @throws IllegalStateException if {@link #termWeights(IndexReader, IdfTermScorer )} has not been called
921921 * @throws IllegalArgumentException if {@code termId} is out of range
922922 */
923923 public double termWeight (final int termId )
@@ -951,7 +951,7 @@ public double[] termWeightsRef()
951951 * @return weight vector indexed by dense term id
952952 * @throws IOException if term iteration fails
953953 */
954- public double [] termWeights (final IndexReader reader , final TermScorer scorer ) throws IOException
954+ public double [] termWeights (final IndexReader reader , final IdfTermScorer scorer ) throws IOException
955955 {
956956 Objects .requireNonNull (reader , "reader" );
957957 Objects .requireNonNull (scorer , "scorer" );
0 commit comments