also allow lucene_default as a valid codec

This commit is contained in:
Simon Willnauer 2016-01-18 13:02:28 +01:00
parent b7c0ac6ad6
commit 04bbc5b83c
1 changed files with 2 additions and 1 deletions

View File

@ -72,10 +72,11 @@ public final class EngineConfig {
public static final Setting<String> INDEX_CODEC_SETTING = new Setting<>("index.codec", "default", (s) -> {
switch(s) {
case "default":
case "lucene_default":
case "best_compression":
return s;
default:
throw new IllegalArgumentException("unknown value for [index.codec] must be one of [default, best_compression]");
throw new IllegalArgumentException("unknown value for [index.codec] must be one of [default, best_compression, lucene_default] but was: " + s);
}
}, false, Setting.Scope.INDEX);