.topLeft(lat, lon) .bottomRight(lat, lon)); filters.add(QueryBuilders.constantScoreQuery(QueryBuilders.termsQuery("place_context", context.name()))); filters.add(QueryBuilders.geoBoundingBoxQuery("location_point") .topLeft(lat_north, lon_west) .bottomRight(lat_south, lon_east)); if (coord.length == 5) filters.add(QueryBuilders.constantScoreQuery(QueryBuilders.termsQuery("location_source", coord[4])));
public GeoBoundingBoxQueryBuilder topLeft(String geohash) { return topLeft(GeoPoint.fromGeohash(geohash)); }
public GeoBoundingBoxQueryBuilder topLeft(GeoPoint point) { return topLeft(point.lat(), point.lon()); }
.add(QueryBuilders .geoBoundingBoxQuery(propertyName) .topLeft(nwLat, nwLon) .bottomRight(seLat, seLon));