You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Julian Reschke (Jira)" <ji...@apache.org> on 2022/06/02 06:53:00 UTC
[jira] [Assigned] (JCR-4784) Missing lucene analyzer dependency
[ https://issues.apache.org/jira/browse/JCR-4784?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Julian Reschke reassigned JCR-4784:
-----------------------------------
Assignee: Julian Reschke
> Missing lucene analyzer dependency
> ----------------------------------
>
> Key: JCR-4784
> URL: https://issues.apache.org/jira/browse/JCR-4784
> Project: Jackrabbit Content Repository
> Issue Type: Bug
> Components: indexing
> Reporter: Ronald A.
> Assignee: Julian Reschke
> Priority: Minor
>
> Using the example configuration from [https://jackrabbit.apache.org/archive/wiki/JCR/IndexingConfiguration_115513411.html]
> {code:xml}
> <analyzer class="org.apache.lucene.analysis.Analyzer.GermanAnalyzer">
> <property>mytext</property>
> </analyzer>
> {code}
> results in the following error:
> {{java.lang.ClassNotFoundException: org.apache.lucene.analysis.de.GermanAnalyzer}}
> This problem exists in all jackrabbit versions.
> Possible fix:
> {code:java}
> diff -urN jackrabbit-2.18.0.orig/jackrabbit-core/pom.xml jackrabbit-2.18.0/jackrabbit-core/pom.xml
> --- jackrabbit-2.18.0.orig/jackrabbit-core/pom.xml<---->2018-11-30 11:11:22.000000000 +0100
> +++ jackrabbit-2.18.0/jackrabbit-core/pom.xml<->2020-08-25 10:27:51.509017603 +0200
> @@ -294,6 +294,10 @@
> <artifactId>lucene-core</artifactId>
> </dependency>
> <dependency>
> + <groupId>org.apache.lucene</groupId>
> + <artifactId>lucene-analyzers</artifactId>
> + </dependency>
> + <dependency>
> <groupId>org.apache.derby</groupId>
> <artifactId>derby</artifactId>
> </dependency>
> diff -urN jackrabbit-2.18.0.orig/jackrabbit-parent/pom.xml jackrabbit-2.18.0/jackrabbit-parent/pom.xml
> --- jackrabbit-2.18.0.orig/jackrabbit-parent/pom.xml<-->2018-11-30 11:11:38.000000000 +0100
> +++ jackrabbit-2.18.0/jackrabbit-parent/pom.xml>2020-08-25 10:28:09.008828296 +0200
> @@ -448,6 +448,11 @@
> <version>3.6.0</version>
> </dependency>
> <dependency>
> + <groupId>org.apache.lucene</groupId>
> + <artifactId>lucene-analyzers</artifactId>
> + <version>3.6.0</version>
> + </dependency>
> + <dependency>
> <groupId>org.apache.tika</groupId>
> <artifactId>tika-core</artifactId>
> <version>${tika.version}</version>
> {code}
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)