/**
* 离我最近的商家筛选
*/
/**
* 当前经纬度 lat lon
*/
if(null == queryVO.getDistanceKm()) {
boolQueryBuilder.must(QueryBuilders.geoDistanceQuery("location").
distance(queryVO.getDistanceKm(), DistanceUnit.KILOMETERS).
point(new GeoPoint(lat, lon)));
}
/**
* 离我最近的商家筛选
*/
/**
* 当前经纬度 lat lon
*/
if(null == queryVO.getDistanceKm()) {
boolQueryBuilder.must(QueryBuilders.geoDistanceQuery("location").
distance(queryVO.getDistanceKm(), DistanceUnit.KILOMETERS).
point(new GeoPoint(lat, lon)));
}