腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
搜索
关闭
文章
问答
(518)
视频
开发者手册
清单
用户
专栏
沙龙
全部问答
原创问答
Stack Exchange问答
更多筛选
回答情况:
全部
有回答
回答已采纳
提问时间:
不限
一周内
一月内
三月内
一年内
问题标签:
未找到与 相关的标签
筛选
重置
1
回答
和多个
2dsphere
索引
如果存储点的模式中存在多个
2dsphere
索引,那么在从用户输入感兴趣点返回数据库中存储点的距离时,我有一个关于$near与geonear的关系的问题。endDate : Date, type: [Number], }, type: [Number], index: '
2dsphere
浏览 3
提问于2016-06-01
得票数 2
1
回答
如何保证复合
2dsphere
指数?
"country" : "Country", "description" : "aDescription"我在蒙戈有以下指数: "location" : "
2dsphere
以下内容正确:postal_code
浏览 6
修改于2014-06-11
得票数 0
回答已采纳
1
回答
YiiMongoDbSuite +
2dsphere
不工作
'maxdistance' => '$maxDistance');{ "line": 1232此外,还会对字段进行索引 "v" : 1, "name"
浏览 0
修改于2014-11-25
得票数 0
1
回答
spring mongo支持
2dsphere
索引的geoJSOn
虽然Mongo在遗留坐标上提供了
2dsphere
索引,但查询需要以geoJSON格式呈现给点/形状。例如,我在地址集合中插入了以下记录。"First", "geo" : [ 13.45, 23.46 ] }然后,我使用下面的命令添加了
2dsphere
index,因为mongodb仍然允许在遗留坐标上使用
2dsphere
index。d
浏览 1
修改于2014-06-01
得票数 0
2
回答
MongoDB
2dsphere
索引错误
为表‘MSParcels’创建索引时出错: WriteConcern检测到错误‘无法从对象中提取地理关键字,几何图形格式错误?: [ [ [ -122.118466012, 47.6511409501, 0.0 ], [ -122.118817718, 47.650852731, 0.0 ],
浏览 0
修改于2013-06-13
得票数 1
回答已采纳
1
回答
Meteor - MongoDB deployed
2dsphere
队列任务信息异常: MongoError:找不到任何特殊索引: 2d (需要索引),
2dsphere
(需要索引),for:{位置:{ $near:{ $geometry:{类型:“点”,坐标:-80,我已经确保了location实际上是一个
2dsphere
类型。
浏览 0
修改于2014-10-23
得票数 0
1
回答
猫鼬蒙古2
2dsphere
location: {type: locationSchema, required:true},});我创建了一个具体的例子并写到ns" : "test.catalogmodels&q
浏览 4
修改于2016-04-05
得票数 2
1
回答
MongoDB -
2dsphere
查询返回零结果
我已经按
2dsphere
索引了集合。db.getCollection("Info").ensureIndex(new BasicDBObject("location", "
2dsphere
"), "geospatial"); Info集合中的文档如下所示
浏览 1
提问于2013-10-20
得票数 3
回答已采纳
1
回答
Mongodb更新索引为
2dsphere
的字段
但是,我找不到为什么不能更新地理位置数据,该数据被索引为
2dsphere
。我正在尝试更新集合中的地理位置数据,但除非我从查询的$set中删除位置部分,否则不会发生更新。是这样的还是我做错了什么?这是我的索引 { key: { slug: 1 } }, { key: { location: "
2dsphere
浏览 3
提问于2020-08-09
得票数 0
回答已采纳
2
回答
Mongoose -
2dsphere
索引- howto
我正在使用Node.js.How,我可以在Mongoose的模式上为多边形配置一个
2dsphere
索引吗?
浏览 5
提问于2013-07-05
得票数 1
1
回答
Mongoose无法识别我的
2dsphere
索引
我正在尝试为我的字段添加
2dSphere
索引startLocation exists in tourSchema。使用Mongo Compass,我可以看到除了startLocation:'
2dsphere
'.之外我创建的所有索引 "ok": 0, "errmsg": "
浏览 66
修改于2020-02-10
得票数 0
1
回答
nearSphere是否使用带有遗留坐标对的
2dsphere
索引?
创建
2dsphere
索引是为了使用多个字段。 "count": 1, "weight": 1, "date": -1, "use
浏览 1
修改于2019-07-11
得票数 0
1
回答
无法使用mongoose设置
2dsphere
索引
我正在尝试为mongoose地理空间设置
2dsphere
索引,但由于某些原因我做不到,我已经尝试了所有方法,但仍然无法获得它。 coordinates: { type: [Number] }causeSchema.index({ "loc": "
2dsphere
浏览 1
提问于2019-05-06
得票数 0
1
回答
猫鼬:更改
2dsphere
索引版本
: Number, "default": 0, min: 0, max: 5}, coords: {type: [Number], index: '
2dsphere
浏览 0
提问于2016-03-10
得票数 3
1
回答
mongodb
2dsphere
索引的内部结构是什么?
我想知道
2dsphere
index的内部结构。我只是找到了mongodb网站的博客,来介绍
2dsphere
index。
浏览 10
修改于2019-03-15
得票数 5
1
回答
确定MongoDB
2dsphere
点之间的路径
我有一个算法,目前从我的数据库中提取一些
2Dsphere
点(不超过6个),这些点彼此之间都在一定的半径内。有没有一种有效的方法来使用MongoDB
2Dsphere
点来做到这一点?我实验过的暴力方法效率不是很高:我找到离起点A最近的点B,然后找到离点B最近的点C,以此类推。
浏览 2
提问于2017-02-08
得票数 0
1
回答
Mongoose -如何在自定义类型上添加
2dsphere
索引?
我正在使用Mongoose和,但是我不能在我的字段中添加
2dsphere
索引: district: { trim: true,unique: true, }, type: GeoJSON.FeatureCollection, index: '
2dsphere
throw new TypeError('Undefined type `' + name + '` at `
浏览 1
提问于2015-10-20
得票数 2
2
回答
MongoDB无法解析查询(
2dsphere
):$geoWithin:
Something here" },}{ } } )error: { "$err" : "can't parse query (
2dsphere
浏览 1
提问于2014-06-05
得票数 1
回答已采纳
4
回答
MongoDB
2dsphere
索引失败(形状错误?)
我目前正在尝试构建一个
2dsphere
索引,但是创建似乎失败了。而且,据我所见,它遵守MongoDB的“多边形”规则。db.poly.ensureIndex( { loc: "
2dsphere
" } ) "createdCollectionAutomatically" : false,
浏览 13
提问于2014-05-29
得票数 6
回答已采纳
2
回答
Mongodb复合
2dsphere
索引没有按预期工作
5248725d2dd5622510000001" } db.search2.ensureIndex({"docVote": 1,"loc":"
2dsphere
0 "docVote": 1 "docVote": 1, "loc": "
2dsphere</
浏览 6
修改于2013-10-01
得票数 3
第 2 页
第 3 页
第 4 页
第 5 页
第 6 页
第 7 页
第 8 页
第 9 页
第 10 页
第 11 页
点击加载更多
领券