创建一个2d索引
db.<collection>.createIndex( { <location field> : "2d" ,
<additional field> : <value> } ,
{ <index-specification options> } ){ min : <lower bound> , max : <upper bound> ,
bits : <bit precision> }定义2d索引的位置范围
2d索引的位置范围db.collection.createIndex( { <location field> : "2d" } ,
{ min : <lower bound> , max : <upper bound> } )定义“2d”索引的位置精度
最后更新于