[SERVER-2990] Projection expression to calculate distance between two points Created: 23/Apr/11 Updated: 28/Dec/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework, Geo |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Alex Sharp | Assignee: | Backlog - Query Integration |
| Resolution: | Unresolved | Votes: | 7 |
| Labels: | expression, mql, neweng, qi-geo | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||
| Assigned Teams: |
Query Integration
|
||||||||||||
| Participants: | |||||||||||||
| Description |
|
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? |
| Comments |
| Comment by Asya Kamsky [ 24/Aug/18 ] |
|
Converting this ticket to enhancement request to be able to calculate distance between two points in any projection.
|