Versions Compared

Key

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

...

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

The manual steps would be:

Code Block
mkdir solr-3.5.0
cd solr-3.5.0
wget "http://search.maven.org/remotecontent?filepath=org/apache/solr/solr/3.5.0/solr-3.5.0.war" -O solr-3.5.0.war
unzip solr-3.5.0.war
cd WEB-INF/lib/
# check index version, see table below:
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.CheckIndex /dspace/solr/statistics/data/index/
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.CheckIndex  /dspace/solr/search/data/index/
# upgrade index version:
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.IndexUpgrader /dspace/solr/statistics/data/index/
java -cp lucene-core-3.5.0.jar org.apache.lucene.index.IndexUpgrader /dspace/solr/search/data/index/
# check index version again, should be "version=3.5 format=FORMAT_3_1 [Lucene 3.1+]"

 

DSpace/Solr/Lucene versions and compatibility

...