CompassQueryBuilder queryBuilder = compassSession.queryBuilder();
CompassQueryBuilder.CompassBooleanQueryBuilder instanceBoolBuilder = queryBuilder.bool();
for (Iterator iter = clazzes.iterator(); iter.hasNext(); ) {
Class clz = (Class) iter.next();
instanceBoolBuilder.addShould(
queryBuilder.term("$/poly/class", clz.getName())
);
}
return instanceBoolBuilder.toQuery();
}
}