Changing ImmutableSettings to Settings for ES 2.0

This commit is contained in:
Chris Earle 2015-07-30 22:08:48 -05:00
parent 87117a5b71
commit 8efa18e616
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ import static org.elasticsearch.node.NodeBuilder.*;
// which means that they will leave the HTTP port open!
Node node =
nodeBuilder()
.settings(ImmutableSettings.settingsBuilder().put("http.enabled", false))
.settings(Settings.settingsBuilder().put("http.enabled", false))
.client(true)
.node();