Details
-
Bug
-
Resolution: Won't Do
-
Major - P3
-
None
-
node 4.4.5
*Location*: https://docs.mongodb.com/manual/reference/operator/query/minDistance/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/601.7.7 (KHTML, like Gecko) Version/9.1.2 Safari/601.7.7
*Referrer*: https://www.google.co.in/
*Screen Resolution*: 1920 x 1080
Description
If we use both minDistance and maxDistance,it is not working correctly.It was giving the same result as it was showing in only maxDistance
query.location = {
$nearSphere: {
$geometry:
,
$minDistance: (22 * 1000),
$maxDistance :(40 * 1000)
}
};
query.location = {
$nearSphere: {
$geometry:
,
$maxDistance :(20 * 1000)
}
};