static MongoCollections() { var db = MongoManager.getDB(); var store = db.GetCollection <StoreMgDTO>(MongoKeyConst.CollectionName); var geoindexMapLocation = IndexKeys <StoreMgDTO> .GeoSpatial(c => c.Location); store.EnsureIndex(geoindexMapLocation, IndexOptions.SetGeoSpatialRange(0, 300)); }