` 是你在创建 LeanDB 时为它指定的名字,如果你的 LeanDB 名为 `MYDB` 的话,就会有名为 `MONGODB_URL_MYDB` 的环境变量。
-
-
-
-
-在 Node.js 中你可以这样连接到 MongoDB(假定 LeanDB 名称为 `MYDB`):
-
-```js title='app.js'
-const { MongoClient } = require("mongodb");
-
-const mongoClient = new MongoClient(process.env["MONGODB_URL_MYDB"], {
- useUnifiedTopology: true,
- poolSize: 10,
-});
-
-mongoClient
- .connect()
- .then(() => {
- console.log("Connected to MongoDB");
- })
- .catch((err) => {
- console.eror("Connect to MongoDB failed", err.message);
- });
-
-app.get("/", (req, res) => {
- const cats = mongoClient.collection("cats");
-
- res.json(cats.find({}, { limit: 10 }));
-});
-```
-
-- 你需要运行 `npm install mongodb` 来安装上面代码中用到的依赖
-- 更多的用法请参考 [MongoDB Node Driver 官方文档](https://www.mongodb.com/docs/drivers/node/current/)
-
-
-
-
-在 .NET 中你可以这样连接到 MongoDB(假定 LeanDB 名称为 `MYDB`):
-
-```cs
-string url = Environment.GetEnvironmentVariable("MONGODB_URL_MYDB");
-MongoClient client = new MongoClient(url);
-IMongoCollection collection = client.GetDatabase("leancloud")
- .GetCollection("hello");
-FilterDefinition filter = Builders.Filter.Empty;
-Console.WriteLine(collection.Find(filter).ToList().ToJson());
-```
-
-
-
-
-## 管理数据
-
-除了在云引擎中通过编程的方式访问 LeanDB,我们还提供了用于进行管理、调试或一次性数据操作的方式。
-
-### 使用命令行工具连接
-
-
diff --git a/docs/sdk/engine/faq.mdx b/docs/sdk/engine/faq.mdx
index 306a9af..b5f5108 100644
--- a/docs/sdk/engine/faq.mdx
+++ b/docs/sdk/engine/faq.mdx
@@ -35,7 +35,7 @@ import Path from "/src/docComponents/path";
在此基础上,开发者可以选择在程序内接入云引擎的 SDK,来使用云函数和 Hook 等功能,云函数与 [数据存储](/sdk/storage/features)[数据存储](/sdk/storage/overview/) 服务有深度的整合,对于已经在使用数据存储服务的开发会非常方便。
-不接入云引擎 SDK 也可以使用云函数以外的所有功能,云引擎也提供了业界广泛使用的 [Redis](/sdk/engine/database/redis/)、[MongoDB](/sdk/engine/database/mongo/) 和 [Elasticsearch](/sdk/engine/database/es/) 供开发者存储数据。
+不接入云引擎 SDK 也可以使用云函数以外的所有功能,云引擎也提供了业界广泛使用的 [Redis](/sdk/engine/database/redis/) 和 [MySQL](/sdk/engine/database/mysql/) 供开发者存储数据。
## 云函数
diff --git a/docs/sdk/engine/overview.mdx b/docs/sdk/engine/overview.mdx
index dcd426f..51d8e59 100644
--- a/docs/sdk/engine/overview.mdx
+++ b/docs/sdk/engine/overview.mdx
@@ -43,9 +43,7 @@ import { Conditional } from "/src/docComponents/conditional";
| 数据库 | 集群配置 | 集群可用性 | 文档页面 |
| ------------- | ------------------ | ---------------------------------- | --------------------------------------------------------- |
| Redis | 主从结构(1M/1S) | 默认高可用,自动切换 | [LeanCache 使用指南](/sdk/engine/database/redis/) |
-| MongoDB | 副本集(1P/1S/1A) | 默认高可用,自动切换 | [LeanDB MongoDB 使用指南](/sdk/engine/database/mongo/) |
| MySQL | 主从结构(1M/1S) | 默认高可用,自动切换 | [LeanDB MySQL 使用指南](/sdk/engine/database/mysql/) |
-| Elasticsearch | 单节点 / 三个节点 | 默认高可用,自动切换(三个节点时) | [LeanDB Elasticsearch 使用指南](/sdk/engine/database/es/) |
## 更多
diff --git a/docs/sdk/engine/platform.mdx b/docs/sdk/engine/platform.mdx
index 94a7fee..f49b0d0 100644
--- a/docs/sdk/engine/platform.mdx
+++ b/docs/sdk/engine/platform.mdx
@@ -31,7 +31,7 @@ import Path from "/src/docComponents/path";
云引擎对应用进程内部几乎没有干预,你可以选用你喜欢的开发框架和第三方组件库、自行组织项目的目录结构。云引擎的负载均衡会转发绑定域名下的所有 HTTP 请求,你可以在应用内使用 Web 框架来自行设计 HTTP API 中的路径、请求和响应的格式。
-目前云引擎主要为无状态的 HTTP 服务而优化,不支持在文件系统上持久地存储数据,应用可以将数据存储到 [数据存储](/sdk/storage/features)[数据存储](/sdk/storage/overview/) 或 LeanDB 提供的 [Redis](/sdk/engine/database/redis/)、[MongoDB](/sdk/engine/database/mongo/) 和 [Elasticsearch](/sdk/engine/database/es/) 中。
+目前云引擎主要为无状态的 HTTP 服务而优化,不支持在文件系统上持久地存储数据,应用可以将数据存储到 [数据存储](/sdk/storage/features)[数据存储](/sdk/storage/overview/) 或 LeanDB 提供的 [Redis](/sdk/engine/database/redis/) 和 [MySQL](/sdk/engine/database/mysql/) 中。
要将一个已有的项目关联到云引擎应用,可以使用 {CLI_BINARY} switch
:
diff --git a/docs/sdk/start/dashboard-guide.mdx b/docs/sdk/start/dashboard-guide.mdx
index c466735..a277b41 100644
--- a/docs/sdk/start/dashboard-guide.mdx
+++ b/docs/sdk/start/dashboard-guide.mdx
@@ -740,7 +740,7 @@ mQtjuMF5xk,xPVrHL0W4n
### LeanDB
-在 **LeanDB** 页面可以管理 [LeanCache(Redis)](/sdk/engine/database/redis/)、[MySQL](/sdk/engine/database/mysql/)、[MongoDB](/sdk/engine/database/mongo/) 实例。
+在 **LeanDB** 页面可以管理 [LeanCache(Redis)](/sdk/engine/database/redis/) 和 [MySQL](/sdk/engine/database/mysql/) 实例。
## 即时通讯
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/_partials/platform-introduction.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/_partials/platform-introduction.mdx
index b133755..51c872b 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/_partials/platform-introduction.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/_partials/platform-introduction.mdx
@@ -1 +1 @@
-Cloud Engine is a platform that lets you host backends for your applications. If you have web apps or backend programs built with Node.js, Python, Java, PHP, .NET, Go, or C++, you can deploy them to Cloud Engine and it will automatically build runnable _versions_ from the source code and run them in independent containers. Cloud Engine provides capabilities including log viewing, monitoring, load balancing, zero downtime deployment, and autoscaling that you can use out of the box. Additional features provided by Cloud Engine include scheduled tasks, domain and certificate management, and hosted database management systems including Redis, MySQL, MongoDB, and Elasticsearch.
+Cloud Engine is a platform that lets you host backends for your applications. If you have web apps or backend programs built with Node.js, Python, Java, PHP, .NET, Go, or C++, you can deploy them to Cloud Engine and it will automatically build runnable _versions_ from the source code and run them in independent containers. Cloud Engine provides capabilities including log viewing, monitoring, load balancing, zero downtime deployment, and autoscaling that you can use out of the box. Additional features provided by Cloud Engine include scheduled tasks, domain and certificate management, and hosted database management systems including Redis and MySQL.
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/es.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/es.mdx
deleted file mode 100644
index 2d10a6c..0000000
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/es.mdx
+++ /dev/null
@@ -1,120 +0,0 @@
----
-title: LeanDB Elasticsearch Guide
-sidebar_label: LeanDB Elasticsearch
-sidebar_position: 4
----
-
-import EngineRuntimes from "/src/docComponents/MultiLang/engine";
-import LeandbCliAccess from "../_partials/leandb-cli-access.mdx";
-import LeandbCreateInstance from "../_partials/leandb-create-instance.mdx";
-import TabItem from "@theme/TabItem";
-import Path from "/src/docComponents/path";
-
-LeanDB Elasticsearch is the hosted database provided by Cloud Engine. You can have your project connect to the database using Elasticsearch libraries or HTTP APIs and have access to all the functions provided by Elasticsearch. See [Cloud Engine Overview](/sdk/engine/overview) to learn about the other hosted database services provided by Cloud Engine.
-
-Elasticsearch has the following features:
-
-- **High availability**: With clusters containing multiple nodes, errors on a single node won’t affect the availability of the service.
-- **Resizing online**: Adjust the size of your instance at any time.
-- **Multiple instances**: Get larger storage and better performance as you need.
-
-## Creating and Managing Instances
-
-You can create and manage LeanDB Elasticsearch instances on ** > Database > Elasticsearch**.
-
-### Creating Instances
-
-
-
-- **Specification** You can choose from `512M`, `1GB`, `2GB`, `4GB`, and `8GB`.
-
-Each specification has its limit on the space. Upgrade to a higher specification to allow for more space.
-
-
-
-### Elasticsearch Version
-
-LeanDB only provides Elasticsearch 7.9 at this time.
-
-### Resizing Online
-
-At this time, you can’t resize LeanDB Elasticsearch instances on your own. Please reach out to us if you need to have your instances resized.
-
-### Sharing Instances
-
-You can use the “Manage sharing” function to share your LeanDB instances with other applications. When you share an instance with another application, the instance will appear in this application. The relevant environment variables will also be available in this application’s Cloud Engine instances.
-
-## Accessing From Cloud Engine
-
-When you deploy a project to the Cloud Engine instances under an application, some environment variables containing information for connecting to Elasticsearch will be injected, including:
-
-- `ELASTICSEARCH_URL_`
-
-Here `` is the name you provided when creating your LeanDB instance. If the name of your LeanDB instance is `MYES`, there will be an environment variable named `ELASTICSEARCH_URL_MYES`.
-
-The environment variable has a format like `http://username:password@host:port`, containing everything you need to connect to the instance, including credentials.
-
-
-
-
-To connect to Elasticsearch from Node.js:
-
-```javascript
-const { Client } = require("@elastic/elasticsearch");
-const client = new Client({
- node: process.env.ELASTICSEARCH_URL_MYES,
-});
-
-// promise API
-const result = await client.search({
- index: "my-index",
- body: {
- query: {
- match: { hello: "world" },
- },
- },
-});
-
-// callback API
-client.search(
- {
- index: "my-index",
- body: {
- query: {
- match: { hello: "world" },
- },
- },
- },
- (err, result) => {
- if (err) console.log(err);
- }
-);
-```
-
-- Make sure to install the dependencies used in the code above with `npm install @elastic/elasticsearch`
-- See [Elasticsearch Node.js client’s docs](https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html) for more information
-
-
-
-
-### Custom Dictionary
-
-You can upload a custom dictionary on the dashboard.
-The dictionary should be encoded with UTF-8 with every line containing a word. The file should be no larger than 10 MB. For example:
-
-```
-Object-oriented programming
-Functional programming
-Higher-order function
-Responsive web design
-```
-
-Save the content into a text file with its name being something like `dict.txt`. Once you upload the file, it should be effective in 2 minutes. You can test if the dictionary is working with the [analyze API](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/test-analyzer.html). Keep in mind that when using the analyze API, an index has to be specified, so the request looks like `curl -X POST "localhost:9200/my-index/_analyze?pretty"`.
-
-## Managing Data
-
-Besides accessing LeanDB with your code from Cloud Engine, you can also use the following ways to manage, debug, or perform operations on your instances.
-
-### Connecting With the CLI
-
-
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/mongo.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/mongo.mdx
deleted file mode 100644
index 2c42837..0000000
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/database/mongo.mdx
+++ /dev/null
@@ -1,104 +0,0 @@
----
-title: LeanDB MongoDB Guide
-sidebar_label: LeanDB MongoDB
-sidebar_position: 3
----
-
-import EngineRuntimes from "/src/docComponents/MultiLang/engine";
-import LeandbCliAccess from "../_partials/leandb-cli-access.mdx";
-import LeandbCreateInstance from "../_partials/leandb-create-instance.mdx";
-import TabItem from "@theme/TabItem";
-import Path from "/src/docComponents/path";
-
-LeanDB MongoDB is the hosted database provided by Cloud Engine. You can have your project connect to the database using MongoDB libraries and have access to all the functions provided by MongoDB. See [Cloud Engine Overview](/sdk/engine/overview) to learn about the other hosted database services provided by Cloud Engine.
-
-## Creating and Managing Instances
-
-You can create and manage LeanDB MongoDB instances on ** > Database > MongoDB**.
-
-### Creating Instances
-
-
-
-- **Specification** You can choose from `512M`, `1GB`, `2GB`, `4GB`, and `8GB`.
-
-Each specification has its limit on the number of connections and the space. Upgrade to a higher specification to allow for more connections and space.
-
-
-
-### MongoDB Version
-
-LeanDB only provides MongoDB 4.0 at this time.
-
-### Resizing Online
-
-At this time, you can’t resize LeanDB MongoDB instances on your own. Please reach out to us if you need to have your instances resized.
-
-### Sharing Instances
-
-You can use the “Manage sharing” function to share your LeanDB instances with other applications. When you share an instance with another application, the instance will appear in this application. The relevant environment variables will also be available in this application’s Cloud Engine instances.
-
-## Accessing From Cloud Engine
-
-When you deploy a project to the Cloud Engine instances under an application, some environment variables containing information for connecting to MongoDB will be injected, including:
-
-- `MONGODB_URL_`
-
-Here `` is the name you provided when creating your LeanDB instance. If the name of your LeanDB instance is `MYDB`, there will be an environment variable named `MONGODB_URL_MYDB`.
-
-
-
-
-To connect to MongoDB from Node.js (assuming the instance name is `MYDB`):
-
-```js title='app.js'
-const { MongoClient } = require("mongodb");
-
-const mongoClient = new MongoClient(process.env["MONGODB_URL_MYDB"], {
- useUnifiedTopology: true,
- poolSize: 10,
-});
-
-mongoClient
- .connect()
- .then(() => {
- console.log("Connected to MongoDB");
- })
- .catch((err) => {
- console.eror("Connect to MongoDB failed", err.message);
- });
-
-app.get("/", (req, res) => {
- const cats = mongoClient.collection("cats");
-
- res.json(cats.find({}, { limit: 10 }));
-});
-```
-
-- Make sure to install the dependencies used in the code above with `npm install mongodb`
-- See [MongoDB Node Driver’s docs](https://www.mongodb.com/docs/drivers/node/current/) for more information
-
-
-
-
-To connect to MongoDB from .NET (assuming the instance name is `MYDB`):
-
-```cs
-string url = Environment.GetEnvironmentVariable("MONGODB_URL_MYDB");
-MongoClient client = new MongoClient(url);
-IMongoCollection collection = client.GetDatabase("leancloud")
- .GetCollection("hello");
-FilterDefinition filter = Builders.Filter.Empty;
-Console.WriteLine(collection.Find(filter).ToList().ToJson());
-```
-
-
-
-
-## Managing Data
-
-Besides accessing LeanDB with your code from Cloud Engine, you can also use the following ways to manage, debug, or perform operations on your instances.
-
-### Connecting With the CLI
-
-
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/faq.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/faq.mdx
index a2fecd2..92b1b0e 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/faq.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/faq.mdx
@@ -35,7 +35,7 @@ Cloud Engine is a platform for hosting backend services. It can be used to host
On top of this, you can choose to integrate the Cloud Engine SDK into your program, which gives your program access to functions like Cloud Functions and hooks. Cloud Functions is designed to work perfectly with our [Data Storage](/sdk/storage/features)[Data Storage](/sdk/storage/overview/) service. If you’re already using the Data Storage service, you’ll find it easy to get started with Cloud Functions.
-You can still use the other features besides Cloud Functions without integrating the Cloud Engine SDK into your program. In addition to the features mentioned above, Cloud Engine also provides hosted [Redis](/sdk/engine/database/redis/), [MongoDB](/sdk/engine/database/mongo/), and [Elasticsearch](/sdk/engine/database/es/) for you to store the data of your application.
+You can still use the other features besides Cloud Functions without integrating the Cloud Engine SDK into your program. In addition to the features mentioned above, Cloud Engine also provides hosted [Redis](/sdk/engine/database/redis/) and [MySQL](/sdk/engine/database/mysql/) for you to store the data of your application.
## Cloud Functions
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/overview.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/overview.mdx
index 69b8e17..f39ce3c 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/overview.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/overview.mdx
@@ -43,9 +43,7 @@ Cloud Engine hosts a collection of popular database management systems that you
| DBMS | Clusters | Cluster availability | Documentation |
| ------------- | ---------------------- | --------------------------------------------------------------------------- | ------------------------------------------------------ |
| Redis | Master/slave (1M/1S) | High availability by default with automatic failover | [LeanCache Guide](/sdk/engine/database/redis/) |
-| MongoDB | Replica set (1P/1S/1A) | High availability by default with automatic failover | [LeanDB MongoDB Guide](/sdk/engine/database/mongo/) |
| MySQL | Master/slave (1M/1S) | High availability by default with automatic failover | [LeanDB MySQL Guide](/sdk/engine/database/mysql/) |
-| Elasticsearch | One or three nodes | High availability by default with automatic failover when using three nodes | [LeanDB Elasticsearch Guide](/sdk/engine/database/es/) |
## More
diff --git a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/platform.mdx b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/platform.mdx
index 8df19be..9dd444d 100644
--- a/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/platform.mdx
+++ b/i18n/en/docusaurus-plugin-content-docs/current/sdk/engine/platform.mdx
@@ -31,7 +31,7 @@ Cloud Engine automatically prepares runtime environments for the applications de
Cloud Engine barely interferes in the processes of your application. You are free to use your preferred frameworks and libraries in your project and organize files and directories in your way. Cloud Engine’s load balancer forwards all the HTTP requests sent to the domains bound to your application. It’s up to you to design the HTTP API’s paths as well as requests’ and responses’ formats under the web framework used by your application.
-Cloud Engine is primarily optimized for hosting stateless HTTP services. Although your application has access to the disk, there’s no guarantee that the disk will keep the files created by your application persistently. For long-term data storage, use the [Data Storage](/sdk/storage/features)[Data Storage](/sdk/storage/overview/) service or LeanDB’s hosted [Redis](/sdk/engine/database/redis/), [MongoDB](/sdk/engine/database/mongo/), and [Elasticsearch](/sdk/engine/database/es/).
+Cloud Engine is primarily optimized for hosting stateless HTTP services. Although your application has access to the disk, there’s no guarantee that the disk will keep the files created by your application persistently. For long-term data storage, use the [Data Storage](/sdk/storage/features)[Data Storage](/sdk/storage/overview/) service or LeanDB’s hosted [Redis](/sdk/engine/database/redis/) and [MySQL](/sdk/engine/database/mysql/).