Page History
...
Solr upgrade (WIP)
Findings
Solr is distributed on Maven Central as a .war file, which includes the Lucene .jars. No Lucene version relevant to DSpace is available from Maven Central.
Solr is a wrapper for Lucene providing concurrency. Lucene can work with index files directly if we don't need concurrent access (i.e. before we start up Solr).
...
- 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 lucenelucene-core-3.5.0.jar from the Solr 3.5 war 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.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/solrlucene/solrlucene-core/3.5.0/solrlucene-core-3.5.0.warjar" -O solr-3.5.0.war unzip solrlucene-core-3.5.0.war cd WEB-INF/lib/jar # 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+]" |
...
Overview
Content Tools