* @param clazzes
* @return
*/
public CompassQuery buildPolyClassQuery(CompassSession compassSession, Collection clazzes) {
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())
);