【发布时间】:2014-11-06 09:49:06
【问题描述】:
我在 mongodb 中触发以下查询
db.acollection.find({
"field.location": {
"$near": [19.0723058, 73.00067739999997]
},
$maxDistance : 100000
}).count()
并得到以下错误 -
uncaught exception: count failed: {
"shards" : {
},
"cause" : {
"errmsg" : "exception: unknown top level operator: $maxDistance",
"code" : 2,
"ok" : 0
},
"code" : 2,
"ok" : 0,
"errmsg" : "failed on : Shard ShardA"
}
【问题讨论】:
标签: mongodb geolocation mongodb-query