Is there a reason I'm unaware of that would cause this query to fail?
Specifically it's the features: {$in: featuresArray} part that causes the query to fail.
Collection.find({
features: {
$in: featuresArray
},
location: {
$near : {
$geometry : {
type : 'Point',
coordinates: [long, lat]
}
}
}},
{
sort: {
score: -1
}
});`
sort()is different.