腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(141)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
2
回答
mongodb中的$and与$
nearSphere
and和from时: "$and" : [ "loc.from" : { } { "$
nearSphere
}}) 它引发
浏览 2
修改于2014-05-30
得票数 0
回答已采纳
2
回答
MongoDB
nearSphere
只返回100个结果?
为什么$
nearsphere
查询总是返回100个结果?db.mytable.find({"geo":{"$
nearSphere
":[41.393552,2.171344999999974],"$maxDistance":0.007}}).limit(500
浏览 0
提问于2012-10-10
得票数 2
回答已采纳
1
回答
用
nearSphere
返回查询点的距离
我在Mongoid 中使用Queryable#near_sphere,这将对查询执行$
nearSphere
命令。我见过geoNear命令:有没有办法做到这两点:b)在Mongoid中使用geoNear
浏览 1
提问于2012-12-05
得票数 2
回答已采纳
1
回答
如何使"$
nearSphere
“也返回没有任何坐标的项目?
我尝试执行如下所示的$
nearSphere
查询: "$
nearSphere
":{ "type":"Point",它们是否强制$
nearSphere
返回没有节点"coordinates“节点的文档(列表末尾)?
浏览 1
修改于2020-03-15
得票数 0
回答已采纳
1
回答
$
nearSphere
返回的数据太多
我注意到$near和$
nearSphere
返回的数据完全不同,于是我产生了怀疑。毕竟,当纬度接近赤道时,球面距离应该与欧几里得距离相差不大。db.tablebusiness.find({ "LongitudeLatitude" : { "$
nearSphere
" : [106.772835, -6.186753], "$maxDistance
浏览 0
修改于2012-09-07
得票数 1
回答已采纳
1
回答
Azure CosmosDb MongoAPI
nearSphere
不返回任何内容
我正在使用带有MongoDb应用程序接口的CosmosDB,我想使用$
nearSphere
来查找文档。db.locations.find({ $
nearSphere
: { type: 'Point',
浏览 2
提问于2021-03-18
得票数 0
1
回答
Mongo司机的DocumentCount不支持$
nearSphere
我得到的错误是:(BadValue) $geoNear、$near和$
nearSphere
在这个上下文中是不允许的 { Value: bson.D{ Key: "$
nearSphere
", Value: bson.D
浏览 3
修改于2019-09-11
得票数 1
回答已采纳
2
回答
使用$
nearSphere
时不正确的排序结果
db.users.find({currentloc : {$
nearSphere
: [115.22804,-8.69914]}})$users =$this->m->mappt->users; array( 'currentloc' => array('$
nearSphere
浏览 2
提问于2013-07-30
得票数 0
回答已采纳
1
回答
C# & MongoDb 2.0 -
NearSphere
发行
SchoolDataModel> { Limit = 10 }; // Just because I wanna limit to 10 results var filter = NewFilterBuilder().
NearSphere
浏览 0
提问于2019-05-01
得票数 0
回答已采纳
1
回答
无法使用$
nearSphere
从mongodb集合中找到数据
73.88, 40.78 ] }, "name" : "La Guardia Airport", "category" : "Airport" }db.places.find({$
nearSphere
) 我得到以下错误:Error: error: { "$err" : "Can't canonicalize query: BadValue unknown top level operator: $
nearSphere
浏览 5
提问于2016-05-06
得票数 1
回答已采纳
1
回答
$
nearSphere
不像预期的那样工作
db.Pet.find({ "Cache.Location" : { "$
nearSphere
" : { "$geometry" : { "type" : "Point", "coordinates"
浏览 2
提问于2013-09-29
得票数 0
回答已采纳
1
回答
MongoDB 3.0.4 $
nearSphere
$maxDistance奇怪行为
, "coordinates" : [ 38.8993487, -77.0145665 ] }}db.places.find({"location": {"$
nearSphere
浏览 2
提问于2015-06-23
得票数 0
回答已采纳
1
回答
寻找与被查询点距离为零的$
nearSphere
结果
如果我写: location: { '$geometry': {db.videos.find({ '$
nearSphere
': { type: 'Point'
浏览 0
修改于2016-03-24
得票数 0
回答已采纳
1
回答
在mongodb查找查询中使用$
nearSphere
+ limit
我用$
nearSphere
创建了一个查询,我意识到有时会得到巨大的结果(1000+),这会影响应用程序的性能。for r in xrange(0,limit):查询本身非常简单: "$
nearSphere
浏览 6
修改于2017-11-20
得票数 1
1
回答
2.4.3vs.2.6.1中带有跳转和限制的Mongodb $
nearSphere
我使用了$
nearSphere
操作符如下:我知道$
nearSphere
操作符只返回100个结果,但是它确实按照我需要的距离对结果集进行排序,而且由于我的应用程序页面的倍数为100,所以我能够按距离迭代概要文件列表,只需按以下方式递增skip值: db.profiles.find({loc: {$
nearSphere
: <lon, lat>}} ...
浏览 1
提问于2014-06-20
得票数 1
回答已采纳
1
回答
Casbah $
nearSphere
不支持$maxDistance
("loc" $
nearSphere
(long, lat) $maxDistance 10)gradle org.mongodb:casbah_2.11:2.7.3中的Casbah
浏览 4
修改于2014-11-12
得票数 1
回答已采纳
1
回答
在蒙古族,$near和$
nearSphere
有什么区别?
我所发现的唯一不同之处是,在
nearSphere
中,它明确指出,Mongo使用球面几何来计算$
nearSphere
的距离。但是使用$near也可以实现这一点,不是吗?
浏览 0
提问于2016-07-10
得票数 21
回答已采纳
1
回答
Spring数据mongodb
nearSphere
不使用query.with(可分页)
下面是相关代码(使用MongoTemplate):query.addCriteria(where("location").
nearSphere
(new如果我注释掉第2行//query.addCriteria(where("location").
nearSphere
(...),,分页工作正常。
浏览 5
修改于2017-05-23
得票数 3
回答已采纳
1
回答
使用$
nearSphere
运算符,MongoDB是否提供到点的距离?
$
nearSphere
MongoDB运算符能够返回靠近给定点(指定为运算符的参数)的文档,并按递增距离排序。谢谢!
浏览 26
修改于2020-05-15
得票数 0
回答已采纳
3
回答
mongoose 3.8.3中mongoDB
nearSphere
方法中的CastError
在mongoose版本3.8.3中,我使用mongoDB $
nearSphere
方法来查找附近的位置。mongoose.models['Event'] { $
nearSphere
:
浏览 12
提问于2013-12-27
得票数 0
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
点击加载更多
领券