Skip to content

Commit 7b8d67e

Browse files
committed
spring-projects#1755-Documentation-fix-to-not-show-deprecated-calls
1 parent d66f8a0 commit 7b8d67e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: src/main/asciidoc/reference/elasticsearch-clients.adoc

+2-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ public class TransportClientConfig extends ElasticsearchConfigurationSupport {
4040
4141
// ...
4242
43-
IndexRequest request = new IndexRequest("spring-data", "elasticsearch", randomID())
43+
IndexRequest request = new IndexRequest("spring-data")
44+
.id(randomID())
4445
.source(someObject);
4546
4647
IndexResponse response = client.index(request);

0 commit comments

Comments
 (0)