腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(737)
视频
沙龙
1
回答
如何在mongoose中创建地理索引
、
、
当我创建一个应该具有
2dsphere
索引的用户时,我尝试在我的集合中创建一个
2dsphere
索引。我从这个答案中引用了DriverSchema.index({ "geometry": "
2dsphere
"}); type: { type: String, default: 'Point'}, coordinates: { type:
浏览 5
提问于2018-03-11
得票数 1
1
回答
$geoNear在mongodb中的位置字段在哪里?
、
我在聚合框架的匹配阶段使用了$near,但是在mongodb的最新版本中,它不起作用。因此,我阅读了,无法找到设置位置字段的位置。{ $near: { type: "Point" , }, $maxDistance: <distance in meters>
浏览 3
提问于2017-04-25
得票数 0
3
回答
亚马逊网络服务DocumentDB是否支持MongoDB 2dshpere索引?
在mongo shell中,我尝试运行db.geojson.createIndex( { geoData : "
2dsphere
" , sessionId:1 } )并收到此代码适用于实际的MongoDb实例,但不适用于新的AWS服务,该服务应该与MongoDB
浏览 1
提问于2019-02-18
得票数 3
2
回答
Mongoose,索引位置数组
、
、
}, },{ }如何在locations数组的geometry字段上添加
2DSphere
浏览 3
提问于2013-07-22
得票数 2
回答已采纳
1
回答
MongoDB创建具有用于空间查询的特征数组的
2dsphere
索引
、
我想在MongoDB中的"features“字段上创建一个
2dsphere
索引。但它包含一个GeoJSON LineStrings数组。如果没有这个数组,我只能为像db.collection.createIndex({ loc : "
2dsphere
" )这样的单个GeoJSON LineString创建
2dsphere
索引。我想执行像collection.find({ $features: { $geometry: bounding_box } })这样的空间查询 有人知道如何为GeoJSON对象数组创建<e
浏览 5
提问于2021-03-13
得票数 1
回答已采纳
1
回答
如何在包含坐标数组的文档上创建MongoDB
2dsphere
索引?
、
、
、
、
当我运行db.infrastructure.createIndex({ "geometry.coordinates": "
2dsphere
" })时,我得到以下错误: MongoServerError:我会尝试使用多索引键,但似乎不能为多索引createIndex()操作指定
2dsphere
。如果可能的话,我希望避免修改我的数据。
浏览 101
提问于2021-11-22
得票数 0
1
回答
nearSphere是否使用带有遗留坐标对的
2dsphere
索引?
、
、
创建
2dsphere
索引是为了使用多个字段。 "count": 1, "weight": 1, "date": -1, "use
浏览 1
提问于2019-07-11
得票数 0
1
回答
mongoldb插入属性顺序重要吗?
、
、
、
"ns" : "bs.locations" { "key" : { "location" : "
2dsphere
浏览 4
提问于2015-05-27
得票数 2
回答已采纳
2
回答
具有稀疏复合索引错误13311的MongoDB $near地理空间查询
、
该集合还包括如下创建的复合索引:我的问题是,当我执行查询时
浏览 5
提问于2014-01-27
得票数 2
回答已采纳
1
回答
spring mongo支持
2dsphere
索引的geoJSOn
、
虽然Mongo在遗留坐标上提供了
2dsphere
索引,但查询需要以geoJSON格式呈现给点/形状。例如,我在地址集合中插入了以下记录。"First", "geo" : [ 13.45, 23.46 ] }然后,我使用下面的命令添加了
2dsphere
index,因为mongodb仍然允许在遗留坐标上使用
2dsphere
index。d
浏览 1
提问于2014-05-14
得票数 0
1
回答
在MongoDB中创建地理空间和类型索引?
、
、
、
通过使用以下命令,我希望使用来自不同索引类型(
2dsphere
和text)的两个索引:但我得到了以下错误: "errmsg“:”坏索引键模式{ @geolocationable:\"
2dsphere
\",name:\"text\“}:不能对单个索引使用多个索引插件。我读过,但我不确定为什么不能在一个集合中创
浏览 2
提问于2016-09-24
得票数 1
回答已采纳
1
回答
回环:对象子域上的近滤光片
、
、
我有一个这样的模特: name: 'My Favorite Shop', location: [12.534 /* longitude */ ,41.9221/* latitude */]}//assuming shops to be the name of the containing model where: { 'address.location': {l
浏览 1
提问于2016-11-09
得票数 1
回答已采纳
1
回答
无法按2球面查找元素
、
$maxDistance : <distance in meters>, } )因此,我有以下几点: "github.com/globalsign/mgo/bson" "timeaddressDocument) //
浏览 0
提问于2019-02-16
得票数 0
回答已采纳
1
回答
异常: geoNear命令失败: errmsg:多个2d索引
、
、
、
、
type: { default: "Point" coordinates: { index: "
2dsphere
浏览 2
提问于2019-04-26
得票数 1
回答已采纳
1
回答
使用谷歌地图中的坐标与mongodb查询一起使用哪个坐标?
但是我很困惑我是应该使用
2dsphere
索引和$nearSphere查询,还是使用2d索引和$near查询? 指数:'
2dspher
浏览 2
提问于2013-10-16
得票数 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
1
回答
如何在strapi上创建MongoDB2dsphere索引?
、
Strapi版本: 3.0.0-beta.19.5 使用mongo控制台中的命令手动创建
2dsphere
索引,但是当应用程序开始运行时,索引被删除。
浏览 2
提问于2020-04-17
得票数 0
回答已采纳
1
回答
如果复合索引包含
2dsphere
索引,则索引前缀不起作用
、
、
、
> db.test.ensureIndex({x: 1, location: '
2dsphere
'}) "createdCollectionAutomatically" : false
浏览 5
提问于2014-06-19
得票数 0
1
回答
即使GeoJSON有效,也无法提取地理密钥
、
、
我在MongoDB中有一个具有
2dsphere
索引的集合。
浏览 1
提问于2015-03-23
得票数 13
1
回答
minDistance不适用于2d索引
、
、
、
我正在使用并尝试执行一些geo查询。public void addLocation(UserLocation userLocation) { mongoTemplate.createCollection(UserLocation.class); mongoTemplate.indexOps(UserLocation.class).ensureIndex( new Geospatial
浏览 0
提问于2015-04-09
得票数 0
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
MongoDB系列6:MongoDB索引的介绍
玩转mongoDB(七):索引,速度的引领(全文索引、地理空间索引
空间索引Spatial Index
地图兴趣点分布式空间分析服务
MongoDB的正确使用姿势
热门
标签
更多标签
云服务器
ICP备案
对象存储
腾讯会议
云直播
活动推荐
运营活动
广告
关闭
领券