You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

.... Work in progress ....


Currently there is one main Solr instance installed in the DDB-Dev-Network: on ddb-di-05. This instance serves as the main search server for the develop and master backend deployments.

These instructions are only for updating this instance. Various prerequisites to running a solr instance are not covered as they have already been set up on this server.

To update this instance the following steps should be performed: 

Download the new Solr version
wget https://mirror.synyx.de/apache/lucene/solr/X.Y.Z/solr-X.Y.Z.tgz


Check integrity of downloaded file
wget https://downloads.apache.org/lucene/solr/X.Y.Z/solr-X.Y.Z.tgz.sha512
sha512sum solr-X.Y.Z.tgz


Unpack new Solr version in /data/ddb/tools/solr
cd /data/ddb/tools/solr
tar -xvzf ~/solr-X.Y.Z.tgz


Copy extra libs to Solr web-app folder
cd /data/ddb/tools/solr/solr-X.Y.Z/
cp dist/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/
cp contrib/extraction/lib/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/
cp contrib/analysis-extras/lucene-libs/*.jar ./server/solr-webapp/webapp/WEB-INF/lib/


Link custom libs from DDB Cortex
cd ./server/solr-webapp/webapp/WEB-INF/lib/
ln -s /data/ddb/Cortex/lib/SolrIndexServer.jar
ln -s /data/ddb/Cortex/lib/solr-ocrhighlighting.jar


Stop running Solr server
service solr stop




Change symlink to new installation
C

1
2
3

cd /opt
rm solr
ln -s solr-X.Y.Z solr


Start new Solr server

1

service solr start

Please check that the new Solr has startet without error by checking the web console: http://ddb-di-vm05.fiz-karlsruhe.de:8183/


  • No labels