From e685abb66e33354878a335df507083cdeb82742d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20B=C3=BCscher?= Date: Mon, 30 Sep 2024 13:53:24 +0200 Subject: [PATCH] Change deprecation log level to critical --- .../analysis/common/StemmerTokenFilterFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/StemmerTokenFilterFactory.java b/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/StemmerTokenFilterFactory.java index 07c5f5dcf39b6..9e1dddba82129 100644 --- a/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/StemmerTokenFilterFactory.java +++ b/modules/analysis-common/src/main/java/org/elasticsearch/analysis/common/StemmerTokenFilterFactory.java @@ -180,10 +180,10 @@ public TokenStream create(TokenStream tokenStream) { return new SnowballFilter(tokenStream, new LegacyGermanStemmer()); } } else if ("german2".equalsIgnoreCase(language)) { - DEPRECATION_LOGGER.warn( + DEPRECATION_LOGGER.critical( DeprecationCategory.ANALYSIS, "german2_stemmer_deprecation", - "The 'german2' stemmer has been deprecated and folged into the 'german' Stemmer. " + "The 'german2' stemmer has been deprecated and folded into the 'german' Stemmer. " + "Replace all usages of 'german2' with 'german'." ); return new SnowballFilter(tokenStream, new GermanStemmer());