-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework, Geo
-
Query Integration
There should be a way to calculate distance from a given point for documents returned by any search. An enhancement to projection language that allows calculating such a distance would be the most flexible way to inject such a "distance" field.
Original Description:
The geoNear command provides the distance from the point passed to the command for each document returned. However, the fact that the only way to get this information from the database is via a non find() command makes it very cumbersome to work with the command.
Is the clear separation of these command a design decision that emphasizes doing distance calculations on the client side, not in the database?
- is related to
-
SERVER-811 Sort $within:$center, $within:$box results by distance
- Backlog