Upgrading to Solr 9.x
Learn how to upgrade to the latest Solr version. If you're using Solr 8, we encourage you to upgrade to Solr 9.x at your earliest convenience.
Context
Follow the steps to upgrade from Solr 8.11 to 9.x:
Procedure
- Update the Solr version to 9.x in your manifest.json file.
- If you have custom Solr configuration, update the following information in the specified files:
- If you have modified other configuration files provided by Solr out-of-the-box, update them with the new Solr 9 configuration files. For example, the jetty.xml file.
Next Steps
Once you've completed the steps for one of the upgrade scenarios, re-index the data. There isn't any downtime, but it's always recommended to index the data again.
Upgrading to Solr 9.8
Upgrading to Solr 9.8 from any previous release requires additional steps described in the procedure below.
Procedure
Because <lib> directive support is removed from solrconfig.xml, the current solr internal module configuration needs to be migrated from solrconfig.xml to solr.xml.
| Before Migrating to 9.8 (for versions below 9.8) | After migrating to 9.8 |
|---|---|
|
Changes to solrconfig.xml |
solr.xml |
<lib dir="${solr.install.dir:../../../..}/modules/analysis-extras/lib" regex=".*\.jar" />
<lib dir="${solr.install.dir:../../../..}/modules/hybris/lib" regex=".*\.jar" />
|
<str name="modules">${solr.modules:analysis-extras,hybris}</str>
|
|
The numVersionBuckets setting is now obsolete and should be removed. <int name="numVersionBuckets">${solr.ulog.numVersionBuckets:65536}</int>
|