
mongoDB
且随疾风前行
我不是代码的生产者,我只是一名搬运工
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Command failed with error 16604: 'geoNear command failed: { ok: 0.0, errmsg: "Can't parse filter ...
异常: 上次写好了geoNear之后,一直测试都没问题。然而,今天放上测试线之后,居然报了这样的错误,令人震惊。 om.mongodb.MongoCommandException: Command failed with error 16604: 'geoNear command failed: { ok: 0.0, errmsg: "Can't parse fi...原创 2019-11-22 09:19:06 · 1914 阅读 · 0 评论 -
The 'cursor' option is required, except for aggregate with the explain argument 错误处理
背景: 最近开始做mongoDB,公司原有的mysql数据库需要在短期内转库为mongoDB,在重构代码过程中,旧有的一些业务逻辑就需要改动了。比较棘手的,就是地理位置数据做排序,这一点上,我打算用mongoDB的geoNear经纬度查询功能来实现。 经过: 在mongoDB中,我写了一段nosql,可以按输入的定点位置以经纬度排序: db.getCollection("proje...原创 2019-11-13 10:48:00 · 6336 阅读 · 1 评论