Good afternoon
has anything changed with the version of mongodb used when deploying to meteor.com? I suddenly get an exception for a $near query that used to work, and still does work on my local deployment
exception: can't find any special indices: 2d (needs index), 2dsphere (needs index), for: {
$and: [{
$or: [{
generic.active: true
}, {
userId: "6fjRPR2X3buBkirMy"
}]
}, {
generic.location.point: {
$near: {
$geometry: {
type: "Point",
coordinates: [-2.134466179521586, 0.6548036874414745]
},
$maxDistance: 700,
$minDistance: 1
}
}, businessType: {
$in: ["Restaurant"]
}
}]
}
but my collection does have an index defined
production-a:PRIMARY> db.business.getIndexes()
[
{
"v" : 1,
"name" : "_id_",
"key" : {
"_id" : 1
},
"ns" : "domain.business"
},
{
"v" : 1,
"name" : "generic.location.point_2dsphere",
"key" : {
"generic.location.point" : "2dsphere"
},
"ns" : "domain.business"
}
]