[DOCS-9066] Comment on: "manual/reference/operator/query/minDistance.txt" Created: 03/Oct/16  Updated: 30/Oct/23

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 1 year, 14 weeks, 2 days ago
Epic Link: DOCSP-1769

 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:

{ type: 'Point', coordinates: [bookingData.bookingAddress.location.coordinates[0], bookingData.bookingAddress.location.coordinates[1]] }

,
$minDistance: (22 * 1000),
$maxDistance :(40 * 1000)
}
};

query.location = {
$nearSphere: {
$geometry:

{ type: 'Point', coordinates: [bookingData.bookingAddress.location.coordinates[0], bookingData.bookingAddress.location.coordinates[1]] }

,
$maxDistance :(20 * 1000)
}
};



 Comments   
Comment by Education Bot [ 31/Oct/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:57:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.