assertThat(Index1Type1.find.byId("1").name).isEqualTo("name1");
assertThat(Index1Type1.find.byId("2").name).isEqualTo("name1");
IndexQuery<Index1Type1> query = Index1Type1.find.query();
query.setBuilder(QueryBuilders.queryString("name1"));
GeoDistanceFilterBuilder filter = FilterBuilders.geoDistanceFilter("type1.location")
.point(30, -88)
.distance(100, DistanceUnit.KILOMETERS);
F.Promise<IndexResults<Index1Type1>> indexResultsPromise = Index1Type1.find.searchAsync(query, filter);
IndexResults<Index1Type1> index1Type1IndexResults = indexResultsPromise.get(2L, TimeUnit.SECONDS);