BHL
Archive
This is a read-only archive of the BHL Staff Wiki as it appeared on Sept 21, 2018. This archive is searchable using the search box on the left, but the search may be limited in the results it can provide.

Solr installation

common tasks

HOST="bhl-int1"
FOXML_FOLDER=/mnt/nfs/dev/data/archival-storage/fedora/data/objectStore
WEBAPP="fedoragsearch"
# fedora on 8080, solr on 8983
PORT="8080"
 
#
# clear the solr index
#
ssh $HOST "/usr/bin/sudo /etc/init.d/jetty stop"
rm -r /mnt/nfs/dev/data/data-management/solr/core/data/*
ssh $HOST "/usr/bin/sudo /etc/init.d/jetty start"
#
# trigger indexing
#
#
 
curl --user fgsAdmin:$GS_PASSWORD "http://$HOST:$PORT/$WEBAPP/rest?operation=updateIndex&action=fromFoxmlFiles&value=${FOXML_FOLDER}"
 



location

dependencies

modifying config files

  1. solr.xml: restart jetty
  2. core/conf: reindex
  3. /etc/default/jetty: restart jetty; if data home has changed: change fgsearch index.properties; adapt jenkins jobs; adapt portal?; THINK!

how to test if it's working

login information if necessary

proxy information




currently solr 3.3.0. is being installed in Jetty:

solr home: /mnt/nfs-demeter/development/data/data-management/solr
core: used by Gsearch

install jetty:
sudo apt-get install jetty libjetty-extra

configure jetty:
sudo vi /etc/default/jetty

copy the solr war to /usr/lib/jetty/webapp/:
cp /mnt/nfs-demeter/apache-solr-3.3.0/dist/apache-solr*.war /usr/lib/jetty/webapp/solr.war

restart Jetty:
sudo /etc/init.d/jetty restart


Also, the configuration of solr will effect Gsearch, please refer to
/mnt/nfs-demeter/development/opt/archival-storage/fedora/tomcat/webapps/fedoragsearch/FgsConfig/fgsconfig-basic.properties

after modifying it, run
ant -f fgsconfig-basic.xml
to update the configuration of gsearch