刚刚转到生产Ubuntu实例,我得到了:
planner returned error: unable to find index for $geoNear query, name=MongoError, ok=0, errmsg=error processing query: ns=esper.usersTree: $and
gender $eq "female"
profileSetup $eq true
age $lt 25
age $gt 21
$not
_id $eq ObjectId('5b248a699dc80c04b112a289')
GEONEAR field=location maxdist=10000 isNearSphere=0
但是,索引已配置:
尝试重启MongoDB。是否需要运行某种缓存或命令来配置索引?