/** * Score the current doc. The default implementation scores the doc * with the similarity using the slop-adjusted {@link #freq}. */ protected float scoreCurrentDoc() throws IOException { assert docScorer != null : getClass() + " has a null docScorer!"; return docScorer.score(docID(), freq); }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
/** * Score the current doc. The default implementation scores the doc * with the similarity using the slop-adjusted {@link #freq}. */ protected float scoreCurrentDoc() throws IOException { assert docScorer != null : getClass() + " has a null docScorer!"; return docScorer.score(docID(), freq); }
/** * Score the current doc. The default implementation scores the doc * with the similarity using the slop-adjusted {@link #freq}. */ protected float scoreCurrentDoc() throws IOException { assert docScorer != null : getClass() + " has a null docScorer!"; return docScorer.score(docID(), freq); }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
/** * Ensure setFreqCurrentDoc is called, if not already called for the current doc. */ private void ensureFreq() throws IOException { int currentDoc = docID(); if (lastScoredDoc != currentDoc) { setFreqCurrentDoc(); lastScoredDoc = currentDoc; } }
/** * Score the current doc. The default implementation scores the doc * with the similarity using the slop-adjusted {@link #freq}. */ protected float scoreCurrentDoc() throws IOException { assert docScorer != null : getClass() + " has a null docScorer!"; return docScorer.score(docID(), freq); }