We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Oliver Drotbohm opened DATAMONGO-1110 and commented
Reference URL: http://stackoverflow.com/questions/27228039/mongodb-spring-data-geonear-query-with-max-and-min-distance
Issue Links:
Referenced from: pull request #277
3 votes, 5 watchers
The text was updated successfully, but these errors were encountered:
Christoph Strobl commented
Using $minDistance only works under certain conditions (index / query type):
$minDistance
[0]
db.runCommand({ "geoNear" : "newyork" , "minDistance" : 1.567855942887398E-4 , "distanceMultiplier" : 6378.137 , "num" : 10 , "near" : [ -73.0 , 40.0] , "spherical" : true}); // or db.runCommand({ "geoNear" : "newyork" , "minDistance" : 1.567855942887398E-4 , "distanceMultiplier" : 6378.137 , "num" : 10 , "near" : {"type":"Point", "coordinates":[ -73.0 , 40.0] }, "spherical" : true});
[1]
db.newyork.find({ "location" : { "$near" : { "x" : -73.99171 , "y" : 40.738868} , "$minDistance" : 0.01}})
[2]
db.newyork.find({ "location" : { "$near" : { "$geometry" : { "type":"Point", "coordinates" : [-73.99171,40.738868] }, "$minDistance" : 0.01}}});
Sorry, something went wrong.
The PR is split in two parts:
christophstrobl
No branches or pull requests
Oliver Drotbohm opened DATAMONGO-1110 and commented
Reference URL: http://stackoverflow.com/questions/27228039/mongodb-spring-data-geonear-query-with-max-and-min-distance
Issue Links:
("is duplicated by")
Referenced from: pull request #277
3 votes, 5 watchers
The text was updated successfully, but these errors were encountered: