final ArrayList<Bytes> termsForQuery = new ArrayList<Bytes>();
final ArrayList<Bytes> terms = new ArrayList<Bytes>();
for(int i=r.nextInt(10); i>=0; i--) {
Bytes bytes = randTerm(r);
terms.add(bytes);
termsForQuery.add(bytes.copy());
}
node = index.getTerms(termsForQuery, revNum);
matches = new Filter<Bytes>(){
public MatchReq filter(Bytes item) {
return terms.contains(item) ? MatchReq.mustmatch : MatchReq.nomatch;