DATAMONGO-1127 - Add support for geoNear queries with distance information.
We now support geoNear queries in Aggregations. Exposed GeoNearOperation factory method in Aggregation. Introduced new distanceField property to NearQuery since it is required for geoNear queries in Aggregations.
Original pull request: #261.
pull/268/merge
Thomas Darimont11 years agocommitted byOliver Gierke
Assert.notNull(nearQuery,"NearQuery must not be null.");
Assert.hasLength(distanceField,"Distance field must not be null or empty.");
Assert.notNull(nearQuery);
this.nearQuery=nearQuery;
this.distanceField=distanceField;
}
/*
@ -41,6 +57,10 @@ public class GeoNearOperation implements AggregationOperation {
@@ -41,6 +57,10 @@ public class GeoNearOperation implements AggregationOperation {