Uploaded image for project: 'Jackrabbit Content Repository'
  1. Jackrabbit Content Repository
  2. JCR-4784

add lucene analyzers dependency to standalone project

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • None
    • None
    • jackrabbit-standalone
    • None

    Description

      Using the example configuration from https://jackrabbit.apache.org/archive/wiki/JCR/IndexingConfiguration_115513411.html

      <analyzer class="org.apache.lucene.analysis.Analyzer.GermanAnalyzer">
        <property>mytext</property>
      </analyzer>
      

      results in the following error:

      java.lang.ClassNotFoundException: org.apache.lucene.analysis.de.GermanAnalyzer

      This problem exists in all jackrabbit versions.

      Possible fix:

      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>
      

       

      Attachments

        Activity

          People

            reschke Julian Reschke
            middlebrain Ronald A.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: