我正在处理地理位置查询,我想获得满足地理位置查询的集合总数。Mongogo库提供DocumentCount方法,不支持基于地理位置的过滤。我得到的错误是:(BadValue)在此上下文中不允许使用$geoNear、$near和$nearSpherefilter:=bson.D{{Key:"address.location",Value:bson.D{{Key:"$nearSphere",Value:bson.D{{Key:"$geometry",Value:bson.D{{Key:"type",Value:"Point",},{Key:"coordinates",Value:bson.
我的收藏看起来像下面的细节/*1createdAt:6/13/2018,5:17:07PM*/{"_id":ObjectId("5b21043b18f3bc7c0be3414c"),"Number":242,"State":"2","City":"3","Website":"","Contact_Person_Name":"Ajithmullassery","CreatedById":"Admin","UpdatedById":"Admin","IsActive":true,"UpdatedOn":ISODate("2018-06-13T17:17:07.313+05:30"),"Cr