diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-21 08:39:51 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-04-21 09:46:46 +0200 |
commit | f2a430b8ae01ba3273c7e527118b2beaab038eca (patch) | |
tree | d2d767690a6a58fcbc8e8968a7b2684a63df23e7 /server/sonar-search | |
parent | 994b1b078f8ea07a93b25e7f813ff94954b0dcbf (diff) | |
download | sonarqube-f2a430b8ae01ba3273c7e527118b2beaab038eca.tar.gz sonarqube-f2a430b8ae01ba3273c7e527118b2beaab038eca.zip |
Avoid automatic creation of indices
Diffstat (limited to 'server/sonar-search')
-rw-r--r-- | server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java b/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java index c939d0cb2cc..b029604a56a 100644 --- a/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java +++ b/server/sonar-search/src/main/java/org/sonar/search/SearchSettings.java @@ -61,7 +61,7 @@ class SearchSettings { Settings build() { ImmutableSettings.Builder builder = ImmutableSettings.settingsBuilder(); configureFileSystem(builder); - configureStorage(builder); + configureIndexDefaults(builder); configurePlugins(builder); configureNetwork(builder); configureCluster(builder); @@ -138,10 +138,12 @@ class SearchSettings { } } - private void configureStorage(ImmutableSettings.Builder builder) { + private void configureIndexDefaults(ImmutableSettings.Builder builder) { builder .put("index.number_of_shards", "1") - .put("index.refresh_interval", "30s"); + .put("index.refresh_interval", "30s") + .put("action.auto_create_index", false) + .put("index.mapper.dynamic", false); } private void configureCluster(ImmutableSettings.Builder builder) { |