mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-06-29 01:44:36 -04:00
Replace references to ImmutableSettings with Settings
ImmutableSettings was merged into Settings in commit 4873070
.
Change-Id: I06bd0150381d131593920c2328c46beacf49661f
This commit is contained in:
parent
f379a13fb4
commit
b49e66c3a1
5 changed files with 7 additions and 7 deletions
|
@ -148,7 +148,7 @@ Note that you have to set the cluster name if you use one different than
|
|||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
Settings settings = ImmutableSettings.settingsBuilder()
|
||||
Settings settings = Settings.settingsBuilder()
|
||||
.put("cluster.name", "myClusterName").build();
|
||||
Client client = TransportClient.builder().settings(settings).build();
|
||||
//Add transport addresses and do something with the client...
|
||||
|
@ -164,7 +164,7 @@ used will be the ones that the other nodes were started with (the
|
|||
|
||||
[source,java]
|
||||
--------------------------------------------------
|
||||
Settings settings = ImmutableSettings.settingsBuilder()
|
||||
Settings settings = Settings.settingsBuilder()
|
||||
.put("client.transport.sniff", true).build();
|
||||
TransportClient client = TransportClient.builder().settings(settings).build();
|
||||
--------------------------------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue