xxzuo commented on code in PR #6663:
URL: https://github.com/apache/seatunnel/pull/6663#discussion_r1557264465


##########
docs/zh/connector-v2/sink/Elasticsearch.md:
##########
@@ -0,0 +1,218 @@
+# Elasticsearch
+
+## 描述
+
+输出数据到 `Elasticsearch`
+
+## 主要特性
+
+- [ ] [精确一次](../../concept/connector-v2-features.md)
+- [x] [cdc](../../concept/connector-v2-features.md)
+
+:::tip
+
+引擎支持
+
+* 支持  `ElasticSearch 版本 >= 2.x 并且 <= 8.x`
+
+:::
+
+## 选项
+
+|           名称            |   类型    | 是否必须 |             默认值              |
+|-------------------------|---------|------|------------------------------|
+| hosts                   | array   | 是    | -                            |
+| index                   | string  | 是    | -                            |
+| schema_save_mode        | string  | 是    | CREATE_SCHEMA_WHEN_NOT_EXIST |
+| data_save_mode          | string  | 是    | APPEND_DATA                  |
+| index_type              | string  | 否    |                              |
+| primary_keys            | list    | 否    |                              |
+| key_delimiter           | string  | 否    | `_`                          |
+| username                | string  | 否    |                              |
+| password                | string  | 否    |                              |
+| max_retry_count         | int     | 否    | 3                            |
+| max_batch_size          | int     | 否    | 10                           |
+| tls_verify_certificate  | boolean | 否    | true                         |
+| tls_verify_hostnames    | boolean | 否    | true                         |
+| tls_keystore_path       | string  | 否    | -                            |
+| tls_keystore_password   | string  | 否    | -                            |
+| tls_truststore_path     | string  | 否    | -                            |
+| tls_truststore_password | string  | 否    | -                            |
+| common-options          |         | 否    | -                            |
+
+### hosts [array]
+
+`Elasticsearch` 集群http地址,格式为 `host:port` ,允许指定多个主机。例如 `["host1:9200", 
"host2:9200"]` 。
+
+### index [string]
+
+`Elasticsearch` 的 `index` 名称。索引支持包含字段名变量,例如 `seatunnel_${age}`,并且该字段必须出现在 
seatunnel Row 中。如果没有,我们将把它视为普通索引
+
+### index_type [string]
+
+`Elasticsearch` 索引类型,elasticsearch 6及以上版本建议不要指定
+
+### primary_keys [list]
+
+主键字段用于生成文档`_id`,这是cdc必需的选项。
+
+### key_delimiter [string]
+
+复合键的分隔符(默认为`_`),例如 `$` 将导致文档 `_id` `KEY1$KEY2$KEY3`。
+
+### username [string]
+
+x-pack 用户名
+
+### password [string]
+
+x-pack 密码
+
+### max_retry_count [int]
+
+批量请求最大尝试大小
+
+### max_batch_size [int]
+
+批量批量文档最大大小

Review Comment:
   ```suggestion
   批次批量文档最大大小
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to