Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5731

Ensure the Lucene index is upgraded

    XMLWordPrintable

Details

    • Undetermined

    Description

      It's been reported that when upgrading from 2.2.x to 2.4.x the following exception is thrown:

      Caused by: java.lang.IllegalArgumentException: An SPI class of type org.apache.lucene.codecs.Codec with name 'Lucene410' does not exist. You need to add the corresponding JAR file supporting this SPI to your classpath. The current classpath supports the following names: [Lucene54]

      This can be fixed by ensuring the Lucene index is properly upgraded during the upgrade process, before the Liquibase changes are run.

      After fixing this bug, the following dependency can be removed from the pom file:

      <dependency>
        <groupId>org.apache.lucene</groupId>
          <artifactId>lucene-backward-codecs</artifactId>
        <version>5.5.5</version>
      </dependency>

       The dependency is introduced by TRUNK-4830.

      Gliffy Diagrams

        Attachments

          Activity

            People

              corneliouzbett Bett Kipchumba
              ibacher Ian Bacher
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated: