Docker中的Mongo Atlas搜索索引
我的nodejs服务中已经有一个docker mongo映像。我使用Docker Mongo图像实施了接受测试。但是现在,我也开始使用Atlas搜索,我想在Mongo Docker上创建Atlas搜索索引。我确实在文档上进行了搜索,但找不到方法。您是否知道如何与Docker为本地环境创建索引?否则,我会发现此错误是由MongoServererror引起的:未识别的管道阶段名称:'$ search'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您现在可以使用此。
不需要CLI,您只需要使用此Docker Image
MongoDB/Mongodb-atlas-local
You can easily do that now with this https://www.mongodb.com/docs/atlas/cli/current/atlas-cli-deploy-docker/.
No CLI needed, you only have to use this docker image
mongodb/mongodb-atlas-local
看起来Atlas CLI是目前唯一的选择。请参阅MongoDB的页面,
看起来还有 docker image 对于CLI,你选择。
Looks like Atlas CLI is the only option at this time. Please see from MongoDB's page, Create a Local Atlas Deployment
Looks like there is also a Docker image for the CLI as well if you choose.
您必须使用Atlas CLI连接到测试数据库,并将查询运行到Atlas。
查看本指南:
You have to use Atlas cli to connect to a test database and run your queries to atlas.
Take a look to this guide:
https://www.mongodb.com/developer/products/mongodb/local-development-mongodb-atlas-cli-docker/