long[] docIds = new long[idTerms.length];
Scanner idScanner = disjunctiveScannerFromTerms(idTerms, index, revNum);
Scanner delScanner = index.fetchDeletions(revNum);
Scanner scanner = ScannerUtil.andNotScanner(idScanner, delScanner);
while (scanner.next()) {
long docId = scanner.doc();
for(int i = 0; i < idTerms.length; i++) {
if (scanner.knownToHaveTerm(idTerms[i]))
docIds[i] = docId;
}
}