This is an automated email from the ASF dual-hosted git repository. juanpablo pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/jspwiki.git
commit 6867c880226e164d7030f2646a51d775a3f21fe2 Author: Juan Pablo Santos RodrÃguez <[email protected]> AuthorDate: Wed Oct 19 21:12:25 2022 +0200 Update Lucene to 9.4.0 --- jspwiki-main/pom.xml | 2 +- .../src/main/java/org/apache/wiki/search/LuceneSearchProvider.java | 3 ++- pom.xml | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/jspwiki-main/pom.xml b/jspwiki-main/pom.xml index 377e1f3c5..54b71c7d1 100644 --- a/jspwiki-main/pom.xml +++ b/jspwiki-main/pom.xml @@ -133,7 +133,7 @@ <dependency> <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analyzers-common</artifactId> + <artifactId>lucene-analysis-common</artifactId> </dependency> <dependency> diff --git a/jspwiki-main/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java b/jspwiki-main/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java index 90677ada8..c93b33b83 100644 --- a/jspwiki-main/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java +++ b/jspwiki-main/src/main/java/org/apache/wiki/search/LuceneSearchProvider.java @@ -23,6 +23,7 @@ import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; import org.apache.lucene.analysis.Analyzer; import org.apache.lucene.analysis.TokenStream; +import org.apache.lucene.analysis.classic.ClassicAnalyzer; import org.apache.lucene.document.Document; import org.apache.lucene.document.Field; import org.apache.lucene.document.StringField; @@ -103,7 +104,7 @@ public class LuceneSearchProvider implements SearchProvider { private static final String PROP_LUCENE_INDEXDELAY = "jspwiki.lucene.indexdelay"; private static final String PROP_LUCENE_INITIALDELAY = "jspwiki.lucene.initialdelay"; - private String m_analyzerClass = "org.apache.lucene.analysis.standard.ClassicAnalyzer"; + private String m_analyzerClass = ClassicAnalyzer.class.getName(); private static final String LUCENE_DIR = "lucene"; diff --git a/pom.xml b/pom.xml index 10a62364e..5c8c772f7 100644 --- a/pom.xml +++ b/pom.xml @@ -69,7 +69,7 @@ <jrcs-diff.version>0.4.2</jrcs-diff.version> <junit.version>5.9.1</junit.version> <log4j2.version>2.19.0</log4j2.version> - <lucene.version>8.11.2</lucene.version> + <lucene.version>9.4.0</lucene.version> <mockito.version>4.6.1</mockito.version> <nekohtml.version>2.1.2</nekohtml.version> <oro.version>2.0.8</oro.version> @@ -298,7 +298,7 @@ <dependency> <groupId>org.apache.lucene</groupId> - <artifactId>lucene-analyzers-common</artifactId> + <artifactId>lucene-analysis-common</artifactId> <version>${lucene.version}</version> </dependency>
