Skip to content

Commit c80d39b

Browse files
Milesian111reswqa
authored andcommitted
[FLINK-37265][docs] Document of python elasticsearch connector exeample has a little mistake
1 parent e04b74b commit c80d39b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/content.zh/docs/connectors/datastream/elasticsearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ input = ...
251251
# 下面的 set_bulk_flush_max_actions 使 sink 在接收每个元素之后立即提交,否则这些元素将被缓存起来
252252
es7_sink = Elasticsearch7SinkBuilder() \
253253
.set_bulk_flush_max_actions(1) \
254-
.set_emitter(ElasticsearchEmitter.static('foo', 'id')) \
254+
.set_emitter(ElasticsearchEmitter.static_index('foo', 'id')) \
255255
.set_hosts(['localhost:9200']) \
256256
.build()
257257

docs/content/docs/connectors/datastream/elasticsearch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ input = ...
251251
# The set_bulk_flush_max_actions instructs the sink to emit after every element, otherwise they would be buffered
252252
es7_sink = Elasticsearch7SinkBuilder() \
253253
.set_bulk_flush_max_actions(1) \
254-
.set_emitter(ElasticsearchEmitter.static('foo', 'id')) \
254+
.set_emitter(ElasticsearchEmitter.static_index('foo', 'id')) \
255255
.set_hosts(['localhost:9200']) \
256256
.build()
257257

0 commit comments

Comments
 (0)