【发布时间】:2015-05-25 15:59:37
【问题描述】:
我正在使用以下条件按位置查询文档
db.collection.find({
"location": {
"$geoWithin": {
"$box": [
[165.8694369, -52.61941849999999],
[-175.831536, -29.2313419]
]
}
}
});
2d 或 2dsphere 应该为位置字段使用哪种索引类型?
【问题讨论】:
标签: mongodb indexing mongoose mongodb-query geospatial