while (termsIndex < terms.length && terms[termsIndex] < term) {
++termsIndex;
}
if (termsIndex < terms.length && term == terms[termsIndex]) {
docIdStream.reset(iter);
<BUG>remapPositiveDocs(docIdStream, docRemapped, targetGroup, positiveGroup);
</BUG>
++termsIndex;
}
if (termsIndex == terms.length) {

while (termsIndex < terms.length && terms[termsIndex] < term) {
++termsIndex;
}
if (termsIndex < terms.length && term == terms[termsIndex]) {
docIdStream.reset(iter);
remapPositiveDocs(docIdStream, bitSet, targetGroup, positiveGroup);
++termsIndex;
}
if (termsIndex == terms.length) {
