/** * Go to next location of this term current document, and set <code>position</code> as <code> * location - offset</code>, so that a matching exact phrase is easily identified when all * NodePhrasePositions have exactly the same <code>position</code>. */ public final boolean nextPosition() throws IOException { if (docsEnum.nextPosition()) { // read subsequent pos's pos = docsEnum.pos() - offset; return true; } else { pos = PositionsIterator.NO_MORE_POS; return false; } }
@Override public String toString() { return "NodePhrasePositions(d:" + docsEnum.doc() + " n:" + docsEnum.node() + " o:" + offset + " p:" + pos + ")"; }