public Index createIndex(String name, String field, String region) throws CacheException {
    try {
      return cache.getQueryService().createIndex(name, field, region);
    } catch (Exception e) {
      throw new RuntimeException(
          "Index creation failed for index on region: " + region + "." + field, e);
    }
  }
Utility class for testing supported queries
geode-dunit/src/main/java/org/apache/geode/cache/query/QueryTestUtils.java