Skip to content

Commit

Permalink
Absorb ImmutableSettings into Settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mikemccand committed May 26, 2015
1 parent 1c15268 commit f54dbc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Expand Up @@ -36,7 +36,7 @@
import org.hamcrest.MatcherAssert;
import org.junit.Test;

import static org.elasticsearch.common.settings.ImmutableSettings.settingsBuilder;
import static org.elasticsearch.common.settings.Settings.settingsBuilder;
import static org.hamcrest.Matchers.instanceOf;

/**
Expand Down
Expand Up @@ -21,7 +21,6 @@

import org.elasticsearch.action.admin.indices.analyze.AnalyzeResponse;
import org.elasticsearch.action.search.SearchResponse;
import org.elasticsearch.common.settings.ImmutableSettings;
import org.elasticsearch.common.settings.Settings;
import org.elasticsearch.common.xcontent.XContentBuilder;
import org.elasticsearch.index.query.QueryBuilders;
Expand All @@ -41,15 +40,15 @@ public class SimplePhoneticIntegrationTests extends ElasticsearchIntegrationTest

@Override
protected Settings nodeSettings(int nodeOrdinal) {
return ImmutableSettings.builder()
return Settings.builder()
.put(super.nodeSettings(nodeOrdinal))
.put("plugins." + PluginsService.LOAD_PLUGIN_FROM_CLASSPATH, true)
.build();
}

@Override
public Settings indexSettings() {
Settings settings = ImmutableSettings.builder()
Settings settings = Settings.builder()
.put(super.indexSettings())
.put("index.analysis.analyzer.my_analyzer.tokenizer", "standard")
.putArray("index.analysis.analyzer.my_analyzer.filter", "standard", "lowercase", "my_metaphone")
Expand Down

0 comments on commit f54dbc3

Please sign in to comment.