recognize closeShifted setting in DefaultIndexDefinition

This commit is contained in:
Jörg Prante 2023-02-10 17:20:50 +01:00
parent b269eb7cce
commit 819f31dffc
2 changed files with 8 additions and 2 deletions

View file

@ -80,7 +80,11 @@ public class DefaultIndexDefinition implements IndexDefinition {
setEnabled(true); setEnabled(true);
} }
public DefaultIndexDefinition(AdminClient adminClient, String index, String type, Settings settings, ClassLoader classLoader) public DefaultIndexDefinition(AdminClient adminClient,
String index,
String type,
Settings settings,
ClassLoader classLoader)
throws IOException { throws IOException {
String indexName = settings.get("name", index); String indexName = settings.get("name", index);
String indexType = settings.get("type", type); String indexType = settings.get("type", type);
@ -122,6 +126,8 @@ public class DefaultIndexDefinition implements IndexDefinition {
setMinToKeep(settings.getAsInt("retention.mintokeep", 2)); setMinToKeep(settings.getAsInt("retention.mintokeep", 2));
setDelta(settings.getAsInt("retention.delta", 2)); setDelta(settings.getAsInt("retention.delta", 2));
} }
boolean closeShifted = settings.getAsBoolean("closeShifted", false);
setCloseShifted(closeShifted);
} }
} }

View file

@ -1,5 +1,5 @@
group = org.xbib group = org.xbib
name = elx name = elx
version = 7.10.2.26 version = 7.10.2.27
org.gradle.warning.mode = ALL org.gradle.warning.mode = ALL