#1755-Documentation-fix-to-not-show-deprecated-calls.

Original Pull Request #1756 
Closes #1755
This commit is contained in:
Peter-Josef Meisch
2021-04-03 08:53:40 +02:00
committed by GitHub
parent d66f8a0650
commit 4ad002746e

View File

@@ -40,7 +40,8 @@ public class TransportClientConfig extends ElasticsearchConfigurationSupport {
// ...
IndexRequest request = new IndexRequest("spring-data", "elasticsearch", randomID())
IndexRequest request = new IndexRequest("spring-data")
.id(randomID())
.source(someObject);
IndexResponse response = client.index(request);