From 819f31dffc9596c0afa3af962bdaf56913ca5b02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Prante?= Date: Fri, 10 Feb 2023 17:20:50 +0100 Subject: [PATCH] recognize closeShifted setting in DefaultIndexDefinition --- .../java/org/xbib/elx/common/DefaultIndexDefinition.java | 8 +++++++- gradle.properties | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/elx-common/src/main/java/org/xbib/elx/common/DefaultIndexDefinition.java b/elx-common/src/main/java/org/xbib/elx/common/DefaultIndexDefinition.java index 8b7838d..a01b5a2 100644 --- a/elx-common/src/main/java/org/xbib/elx/common/DefaultIndexDefinition.java +++ b/elx-common/src/main/java/org/xbib/elx/common/DefaultIndexDefinition.java @@ -80,7 +80,11 @@ public class DefaultIndexDefinition implements IndexDefinition { 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 { String indexName = settings.get("name", index); String indexType = settings.get("type", type); @@ -122,6 +126,8 @@ public class DefaultIndexDefinition implements IndexDefinition { setMinToKeep(settings.getAsInt("retention.mintokeep", 2)); setDelta(settings.getAsInt("retention.delta", 2)); } + boolean closeShifted = settings.getAsBoolean("closeShifted", false); + setCloseShifted(closeShifted); } } diff --git a/gradle.properties b/gradle.properties index 4c8c11a..57199d6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,5 +1,5 @@ group = org.xbib name = elx -version = 7.10.2.26 +version = 7.10.2.27 org.gradle.warning.mode = ALL