Page History
...
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:
- get lucene-core-3.5.0.jar from Maven Central
- detect the index version using getCurrentVersion(index_dir) of Lucene 3.5.0
- for any version older than LUCENE_35 go to 4, otherwise go to 6
- run the IndexUpgrader class of Lucene 3.5 (or optimize())
- start up DSpace in order to start up Solr 4
- run the IndexUpgrader class of Lucene 4.10.2
...
- Detect the oldest segment version using SegmentInfo.getVersion() of Lucene 4.10
- 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
- If that oldest segment version is < 3.5 go to 3. Otherwise go to 5.
- get lucene-core-3.5.0.jar from Maven Central
- run the IndexUpgrader class of Lucene 3.5 (or optimize())
- start up DSpace in order to start up Solr 4
- run the IndexUpgrader class of Lucene 4.10.2
The manual steps would be:
...
Overview
Content Tools