@Override int phraseFreq() throws IOException { int freq = 1; // set to one to count the first phrase found while (this.nextPhrase()) { freq++; } return freq; }
return new NodeExactPhraseScorer(this, postings, similarity.sloppySimScorer(stats, context), similarity.exactSimScorer(stats, context));
@Override boolean firstPhrase() throws IOException { for (final NodePhrasePosition phrasePosition : phrasePositions) { phrasePosition.init(); } // check for phrase return this.nextPhrase(); }