diff --git a/docs/dev/connectors/elasticsearch.md b/docs/dev/connectors/elasticsearch.md index bafe391850b5f..927bb69f1a792 100644 --- a/docs/dev/connectors/elasticsearch.md +++ b/docs/dev/connectors/elasticsearch.md @@ -223,7 +223,7 @@ ElasticsearchSink.Builder esSinkBuilder = new ElasticsearchSink.Builder< builder.setBulkFlushMaxActions(1); // provide a RestClientFactory for custom configuration on the internally created REST client -builder.setRestClientBuilder( +builder.setRestClientFactory( restClientBuilder -> { restClientBuilder.setDefaultHeaders(...) restClientBuilder.setMaxRetryTimeoutMillis(...) @@ -360,7 +360,7 @@ val esSinkBuilder = new ElasticsearchSink.Builer[String]( builder.setBulkFlushMaxActions(1) // provide a RestClientFactory for custom configuration on the internally created REST client -builder.setRestClientBuilder( +builder.setRestClientFactory( restClientBuilder -> { restClientBuilder.setDefaultHeaders(...) restClientBuilder.setMaxRetryTimeoutMillis(...)