diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/util/settings/ImmutableSettings.java b/modules/elasticsearch/src/main/java/org/elasticsearch/util/settings/ImmutableSettings.java index 731727d52c5..c4ba384fef5 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/util/settings/ImmutableSettings.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/util/settings/ImmutableSettings.java @@ -155,7 +155,7 @@ public class ImmutableSettings implements Settings { return defaultValue; } try { - return Boolean.valueOf(sValue); + return sValue.equals("true") || sValue.equals("1"); } catch (NumberFormatException e) { throw new SettingsException("Failed to parse boolean setting [" + setting + "] with value [" + sValue + "]", e); }