Page History
...
- detect the index version using getCurrentVersion(index_dir)
- for any version older than LUCENE_35 go to 3, otherwise go to 7
- get the Solr 3.5 war from Maven Central
- extract the lucene-core-3.5.0.jar from the Solr 3.5 war
- 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.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
...
Overview
Content Tools