@Test
  public void testBug36823() throws Exception {
    QueryService qs;
    qs = CacheUtils.getQueryService();
    qs.createIndex("entryIndex", IndexType.FUNCTIONAL, "value.getID()",
        SEPARATOR + "portfolios.entrySet pf");
    Region rgn = CacheUtils.getRegion(SEPARATOR + "portfolios");
    rgn.put("4", new Portfolio(4));
    rgn.put("5", new Portfolio(5));
    Query qr =
        qs.newQuery("Select distinct * from " + SEPARATOR
            + "portfolios.entrySet pf where pf.value.getID() = 4");
    SelectResults sr = (SelectResults) qr.execute();
    assertEquals(sr.size(), 1);
  }
Creation of index on a path derived from Region.Entry object obtained via entrySet , fails as
that function was not supported in the QRegion & DummyQRegion
geode-core/src/integrationTest/java/org/apache/geode/cache/query/functional/IndexCreationJUnitTest.java