final TermPositions p;
int docFreq;
if (terms.length > 1) {
p = new MultipleTermPositions(reader, terms);
// coarse -- this overcounts since a given doc can
// have more than one terms:
docFreq = 0;
for(int termIdx=0;termIdx<terms.length;termIdx++) {