allTerms = index.getRange(new Range(ArrayBytes.EMPTY_BYTES, null, null, true, true), revNum);
allTerms.seek(doc1, ArrayBytes.EMPTY_BYTES);
assertEquals(0, allTerms.term().compareTo(t1));
assertEquals(NextStatus.NEXT_TERM, allTerms.nextTerm());
assertEquals(0, allTerms.term().compareTo(t3));
assertEquals(NextStatus.NEXT_DOC, allTerms.nextTerm());
s = index.getRange(new Range(t0, t3, t4, false, false), revNum);
assertNull(s);
s = index.getRange(new Range(t0, t3, t4, false, true), revNum);