@Override public float score() throws IOException { this.computeScoreAndFreq(); return score; }
/** * Returns number of matches for the current document. This returns a float * (not int) because SloppyPhraseScorer discounts its freq according to how * "sloppy" the match was. * <p> * Only valid after calling {@link #nextDoc()} or {@link #advance(int)} */ @Override public float freq() throws IOException { this.computeScoreAndFreq(); return freq; }