mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-25 17:38:44 +00:00
Update client.asciidoc
as of 42526ac28e
5.0.0 alpha2 have no settingsBuilder() method.
This commit is contained in:
parent
929187c71b
commit
d63362ce43
@ -51,7 +51,7 @@ Note that you have to set the cluster name if you use one different than
|
||||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
Settings settings = Settings.settingsBuilder()
|
||||
Settings settings = Settings.builder()
|
||||
.put("cluster.name", "myClusterName").build();
|
||||
Client client = TransportClient.builder().settings(settings).build();
|
||||
//Add transport addresses and do something with the client...
|
||||
|
Loading…
x
Reference in New Issue
Block a user