Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: First pass at Solr index upgrades

...

After upgrading DSpace, you should optimize your Solr indexes to ensure that they are in the current format.  Solr can upgrade recent formats to its current one.  Doing this whenever you upgrade DSpace should keep the index formats current.  You can optimize your indexes with a command line tool such as <code>wget</code>:

Code Block
languagebash
titleOptimizing Solr indexes
wget http://www.example.com/solr/<core>/update?optimize=true

 

If you have been through several DSpace upgrades and have not done this, there is a chance that your indexes are in a format too old for the most recent Solr to convert:

Info
titleFormat error

Caused by: org.apache.lucene.index.IndexFormatTooOldException: Format version is not supported (resource: segment _386q in resource ChecksumIndexInput(MMapIndexInput(path="/space/dspace/solr/statistics/data/index/segments_37m6"))): 2.x. This version of Lucene only supports indexes created with release 3.0 and later.

You may be able to use your older DSpace installation before upgrading it, to upgrade your indexes enough that a second optimization after upgrading DSpace will succeed.  You can also use an external tool with its own version of the required libraries, such as Luke.  You will need a version of Lucene (the indexing library used by Solr) which can convert the earlier version into the later one.  So, for example, you could use the Solr webapp. in DSpace 1.8.x or 3.x, or Luke 3.5, to upgrade version 2 indexes to version 3.