diff --git a/module.xml b/module.xml index c0ad799f9..b4e9e4466 100644 --- a/module.xml +++ b/module.xml @@ -6,7 +6,7 @@ - + diff --git a/plugin.xml b/plugin.xml index b2db93d4e..b64bd1697 100644 --- a/plugin.xml +++ b/plugin.xml @@ -17,8 +17,8 @@ - - + + @@ -26,8 +26,8 @@ - - + + @@ -35,8 +35,8 @@ - - + + @@ -44,8 +44,8 @@ - - + + diff --git a/pom.xml b/pom.xml index 761d3940b..087b63a55 100644 --- a/pom.xml +++ b/pom.xml @@ -1007,6 +1007,12 @@ org.opensearch opensearch ${opensearch.version} + + + jakarta.annotation + jakarta.annotation-api + + org.codelibs.opensearch diff --git a/src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java b/src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java index 19f2e1996..e0dccda04 100644 --- a/src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java +++ b/src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java @@ -157,7 +157,6 @@ import org.opensearch.action.update.UpdateResponse; import org.opensearch.client.AdminClient; import org.opensearch.client.Client; import org.opensearch.cluster.metadata.MappingMetadata; -import org.opensearch.common.collect.ImmutableOpenMap; import org.opensearch.common.document.DocumentField; import org.opensearch.common.settings.Settings; import org.opensearch.common.settings.Settings.Builder; @@ -550,7 +549,7 @@ public class SearchEngineClient implements Client { final GetMappingsResponse getMappingsResponse = client.admin().indices().prepareGetMappings(indexName).execute().actionGet(fessConfig.getIndexIndicesTimeout()); - final ImmutableOpenMap indexMappings = getMappingsResponse.mappings(); + final Map indexMappings = getMappingsResponse.mappings(); if (indexMappings == null || !indexMappings.containsKey("properties")) { String source = null; final String mappingFile = getResourcePath(indexConfigPath, fessConfig.getFesenType(), "/" + index + "/" + docType + ".json"); diff --git a/src/main/java/org/codelibs/fess/util/UpgradeUtil.java b/src/main/java/org/codelibs/fess/util/UpgradeUtil.java index f69196346..320ca82fd 100644 --- a/src/main/java/org/codelibs/fess/util/UpgradeUtil.java +++ b/src/main/java/org/codelibs/fess/util/UpgradeUtil.java @@ -16,6 +16,7 @@ package org.codelibs.fess.util; import java.io.File; +import java.util.Map; import java.util.function.Consumer; import org.apache.logging.log4j.LogManager; @@ -35,7 +36,6 @@ import org.opensearch.action.support.master.AcknowledgedResponse; import org.opensearch.client.Client; import org.opensearch.client.IndicesAdminClient; import org.opensearch.cluster.metadata.MappingMetadata; -import org.opensearch.common.collect.ImmutableOpenMap; import org.opensearch.common.xcontent.XContentType; public final class UpgradeUtil { @@ -93,7 +93,7 @@ public final class UpgradeUtil { final FessConfig fessConfig = ComponentUtil.getFessConfig(); final GetMappingsResponse getMappingsResponse = indicesClient.prepareGetMappings(index).execute().actionGet(fessConfig.getIndexIndicesTimeout()); - final ImmutableOpenMap indexMappings = getMappingsResponse.mappings(); + final Map indexMappings = getMappingsResponse.mappings(); if (indexMappings == null || !indexMappings.containsKey("properties")) { String source = null; final String mappingFile = indexResourcePath + "/" + docType + ".json"; diff --git a/src/main/resources/fess_indices/fess/ja/mapping.txt b/src/main/resources/fess_indices/fess/ja/mapping.txt index cae877c25..bff3951a3 100644 --- a/src/main/resources/fess_indices/fess/ja/mapping.txt +++ b/src/main/resources/fess_indices/fess/ja/mapping.txt @@ -1,19 +1,3 @@ -# -# Copyright (C) 2016 Shinji Ikeda All Rights Reserved. -# Copyright 2009-2017 CodeLibs Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - \u0009 => \u0020 \u000A => \u0020 \u000B => \u0020 diff --git a/src/main/resources/fess_indices/fess/mapping.txt b/src/main/resources/fess_indices/fess/mapping.txt index 2389de45b..4b22f46b7 100644 --- a/src/main/resources/fess_indices/fess/mapping.txt +++ b/src/main/resources/fess_indices/fess/mapping.txt @@ -1,18 +1,3 @@ -# Copyright (C) 2016 Shinji Ikeda All Rights Reserved. -# Copyright 2009-2017 CodeLibs Project -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - \u0009 => \u0020 \u000A => \u0020 \u000B => \u0020