Docker中的Mongo Atlas搜索索引

发布于 2025-01-25 20:29:46 字数 220 浏览 6 评论 0 原文

我的nodejs服务中已经有一个docker mongo映像。我使用Docker Mongo图像实施了接受测试。但是现在,我也开始使用Atlas搜索,我想在Mongo Docker上创建Atlas搜索索引。我确实在文档上进行了搜索,但找不到方法。您是否知道如何与Docker为本地环境创建索引?否则,我会发现此错误是由MongoServererror引起的:未识别的管道阶段名称:'$ search'

I already have a Docker Mongo image in my NodeJs service. I implement the acceptance test using the Docker Mongo image. But now, I start to use Atlas Search as well and I want to create Atlas Search index on my Mongo Docker. I did search on the documentation but couldn't find a way. Do you have any idea how can I create an index for my local environment with docker? Otherwise I get this error caused by MongoServerError: Unrecognized pipeline stage name: '$search'

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

痴情 2025-02-01 20:29:47

您现在可以使用此

不需要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

森末i 2025-02-01 20:29:47

看起来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.

乖乖 2025-02-01 20:29:47

您必须使用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/

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文