public void createIndex() {
    QueryService qs = CacheFactory.getAnyInstance().getQueryService();
    try {
      qs.createIndex("ID1", "ID", SEPARATOR + PartitionedRegionName1);
      qs.createIndex("ID2", "ID", SEPARATOR + PartitionedRegionName2);
      qs.createIndex("ID3", "ID", SEPARATOR + PartitionedRegionName3);
    } catch (Exception e) {
      fail("Index creation failed " + e);
    }
  }
This function puts portfolio objects into the created Region (PR or Local) *

@return cacheSerializable object
geode-core/src/distributedTest/java/org/apache/geode/cache/query/dunit/QueryUsingFunctionContextDUnitTest.java