public static void main()

in lucene/src/main/java/org/apache/geode_examples/lucene/Example.java [41:55]


  public static void main(String[] args) throws LuceneQueryException {
    // connect to the locator using default port 10334
    ClientCache cache = new ClientCacheFactory().addPoolLocator("127.0.0.1", 10334)
        .set("log-level", "WARN").create();

    // create a local region that matches the server region
    Region<Integer, EmployeeData> region =
        cache.<Integer, EmployeeData>createClientRegionFactory(ClientRegionShortcut.CACHING_PROXY)
            .create("example-region");

    insertValues(region);
    query(cache);
    queryNestedObject(cache);
    cache.close();
  }