Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We need to avoid the conflict of having both Solr 3.5 and 4.10.2 in the DSpace classpath. Therefore I suggest to run the first step before the Solr 4.10.2 webapp is started as part of DSpace 5.

To do that, we need to:

 

  1. get lucene-core-3.5.0.jar from Maven Central
  2. detect the index version using getCurrentVersion(index_dir) of Lucene 3.5.0
  3. for any version older than LUCENE_35 go to 4, otherwise go to 6
  4. run the IndexUpgrader class of Lucene 3.5 (or optimize())
  5. start up DSpace in order to start up Solr 4
  6. run the IndexUpgrader class of Lucene 4.10.2

...

  1. Detect the oldest segment version using SegmentInfo.getVersion() of Lucene 4.10
    1. General logic is in this area of the CheckIndex script: https://github.com/apache/lucene-solr/blob/lucene_solr_4_10/lucene/core/src/java/org/apache/lucene/index/CheckIndex.java#L426
  2. If that oldest segment version is < 3.5 go to 3. Otherwise go to 5.
  3. get lucene-core-3.5.0.jar from Maven Central
  4. run the IndexUpgrader class of Lucene 3.5 (or optimize())
  5. start up DSpace in order to start up Solr 4
  6. run the IndexUpgrader class of Lucene 4.10.2


The manual steps would be:

...