aggregation framework - Mongodb aggregate with $geoNear Exception: geoNear command failed: { ok: 0.0, errmsg: \"can't get query runner\" -


i trying run $geonear mongodb aggregate , getting below error. tried find issue unable to. appreciated.

thanks!

error -

aggregate failed: { "errmsg": "exception: geonear command failed: { ok: 0.0, errmsg: \"can't query runner\" }", "code": 16604, "ok": 0 } @ /users/waseemquamar/.mongorc.js:82 

query -

db.retailers.aggregate([ {  $geonear: {     near: { type: "point", coordinates: [ -73.99279 , 40.719296 ] },     distancefield: "dist.calculated",     maxdistance: 2,     includelocs: "dist.location",     num: 5,     spherical: true  } } 

index - db.retailers.getindexes();

[ { "v": 1, "key": {   "_id": 1 }, "name": "_id_", "ns": "hw_development.retailers" }, { "v": 1, "key": {   "geolocation": "2d" }, "name": "geolocation_2d", "ns": "hw_development.retailers", "background": true, "safe": null } ] 


Comments

Popular posts from this blog

shopping cart - Page redirect not working PHP -

php - How to modify a menu to show sub-menus -

python - Installing PyDev in eclipse is failed -