* UCL Proof Scan
*/
// positions
TermPositions termPos = reader.termPositions(term);
termPos.skipTo(doc);
int pos = 0;
int i = termPos.freq();
while (termPos.doc() == doc && i > 0) {
System.out.println("docno: " + doc + " pos: "
+ termPos.nextPosition());