[SERVER-38236] $geoNear (aggregation) when $maxDistance = 0, return all locations Created: 24/Nov/18 Updated: 26/Nov/18 Resolved: 26/Nov/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | 4.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | linden quan | Assignee: | Danny Hatcher (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
$geoNear with $maxDistance = 0, it doesn't return the only one matching location. It returns all locations. The behaviour is the same as $maxDistance=Double.max |
| Comments |
| Comment by Danny Hatcher (Inactive) [ 26/Nov/18 ] | |||||||||||
|
Hello, Thank you for contacting us. I've confirmed that your steps to reproduce do show two results when specifying a maxDistance of 0. However, in our work in Thank you, Danny | |||||||||||
| Comment by linden quan [ 26/Nov/18 ] | |||||||||||
|
please remove back-slash in code in Steps To Reproduce section | |||||||||||
| Comment by linden quan [ 24/Nov/18 ] | |||||||||||
|
I tested on Ubuntu 18 $nearSphere returns only one result which is correct behaviour.
|