This is an automated email from the ASF dual-hosted git repository.

liuyu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git


The following commit(s) were added to refs/heads/master by this push:
     new 9425b11  [Doc]Fix the config document for `indexName` in es sink 
(#14517)
9425b11 is described below

commit 9425b1130389b2d006acfa15f6e4102f433d1cd3
Author: Yang Yang <[email protected]>
AuthorDate: Wed Mar 2 08:42:02 2022 +0800

    [Doc]Fix the config document for `indexName` in es sink (#14517)
---
 site2/docs/io-elasticsearch-sink.md              | 4 ++--
 site2/website-next/docs/io-elasticsearch-sink.md | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/site2/docs/io-elasticsearch-sink.md 
b/site2/docs/io-elasticsearch-sink.md
index 053756d..bf7c553 100644
--- a/site2/docs/io-elasticsearch-sink.md
+++ b/site2/docs/io-elasticsearch-sink.md
@@ -49,8 +49,8 @@ The configuration of the Elasticsearch sink connector has the 
following properti
 
 | Name | Type|Required | Default | Description 
 |------|----------|----------|---------|-------------|
-| `elasticSearchUrl` | String| true |" " (empty string)| The URL of elastic 
search cluster to which the connector connects. |
-| `indexName` | String| true |" " (empty string)| The index name to which the 
connector writes messages. |
+| `elasticSearchUrl` | String| true |" " (empty string)| The index name to 
which the connector writes messages. The default value is the topic name. It 
accepts date formats in the name to support event time based index with the 
pattern `%{+<date-format>}`. For example, suppose the event time of the record 
is 1645182000000L, the indexName is `logs-%{+yyyy-MM-dd}`, then the formatted 
index name would be `logs-2022-02-18`. |
+| `indexName` | String| false |" " (empty string)| The index name to which the 
connector writes messages. |
 | `schemaEnable` | Boolean | false | false | Turn on the Schema Aware mode. |
 | `createIndexIfNeeded` | Boolean | false | false | Manage index if missing. |
 | `maxRetries` | Integer | false | 1 | The maximum number of retries for 
elasticsearch requests. Use -1 to disable it.  |
diff --git a/site2/website-next/docs/io-elasticsearch-sink.md 
b/site2/website-next/docs/io-elasticsearch-sink.md
index af67daa..8dac257 100644
--- a/site2/website-next/docs/io-elasticsearch-sink.md
+++ b/site2/website-next/docs/io-elasticsearch-sink.md
@@ -50,7 +50,7 @@ The configuration of the Elasticsearch sink connector has the 
following properti
 | Name | Type|Required | Default | Description 
 |------|----------|----------|---------|-------------|
 | `elasticSearchUrl` | String| true |" " (empty string)| The URL of elastic 
search cluster to which the connector connects. |
-| `indexName` | String| true |" " (empty string)| The index name to which the 
connector writes messages. The default value is the topic name. It accepts date 
formats in the name to support event time based index with the pattern 
`%{+<date-format>}`. For example, suppose the event time of the record is 
1645182000000L, the indexName is `logs-%{+yyyy-MM-dd}`, then the formatted 
index name would be `logs-2022-02-18`. |
+| `indexName` | String| false |" " (empty string)| The index name to which the 
connector writes messages. The default value is the topic name. It accepts date 
formats in the name to support event time based index with the pattern 
`%{+<date-format>}`. For example, suppose the event time of the record is 
1645182000000L, the indexName is `logs-%{+yyyy-MM-dd}`, then the formatted 
index name would be `logs-2022-02-18`. |
 | `schemaEnable` | Boolean | false | false | Turn on the Schema Aware mode. |
 | `createIndexIfNeeded` | Boolean | false | false | Manage index if missing. |
 | `maxRetries` | Integer | false | 1 | The maximum number of retries for 
elasticsearch requests. Use -1 to disable it.  |

Reply via email to