Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Installing Solr and GSearch

1. Download GSearch  22.6, unzip and copy fedoragsearch.war to the Tomcat webapps folder ($CATALINA_HOME/webapps).

Code Block
languagebash
$# cd /opt/downloads
# wget http://downloads.sourceforge.net/fedora-commons/fedoragsearch-2.6.zip
# unzip fedoragsearch-2.6.zip
$# cd fedoragsearch-2.6
$# cp -v fedoragsearch.war /usr/local/fedora/tomcat/webapps


2. Download Solr 4.2.0 and unpack.

Code Block
languagebash
$# cd /opt/downloads
# wget https://archive.apache.org/dist/lucene/solr/4.2.0/solr-4.2.0.tgz
# tar -xzvf solr-4.2.0.tgz


3. Create a directory for Solr, and copy the contents of solr-4.2.0/example/solr. These instructions presume that it will be installed at /usr/local/fedora/solr:

Code Block
languagebash
$# mkdir -p /usr/local/fedora/solr
$# cp -Rv solr-4.2.0/example/solr/* /usr/local/fedora/solr


4. Copy (and rename) solr-4.2.0.war to $CATALINA_HOME/webapps.

Code Block
languagebash
$# cp -v solr-4.2.0/dist/solr-4.2.0.war /usr/local/fedora/tomcat/webapps/solr.war

...


6. Restart Fedora to deploy GSearch and Solr

Code Block
languagebash
$# /usr/local/fedora/tomcat/bin/shutdown.sh

$# /usr/local/fedora/tomcat/bin/startup.sh

This will deploy solr and fedora


7. Now we need to edit the configuration for gsearch.

Edit the file $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/fgsconfig-basic-for-islandora.properties. The entries below are of an example setup.

Code Block
configDisplayName=configProductionSolr
gsearchBase=http://localhost:8080
gsearchAppName=fedoragsearch
 
gsearchUser=fgsAdmin
gsearchPass=[password]
finalConfigPath=/usr/local/fedora/tomcat/webapps/fedoragsearch/WEB-INF/classes
 
logFilePath=/usr/local/fedora/server/logs
logLevel=DEBUG
namesOfRepositories=FgsRepos
 
namesOfIndexes=FgsIndex
fedoraBase=http://localhost:8080
fedoraAppName=fedora
 
fedoraUser=fedoraAdmin
fedoraPass=[password]
fedoraVersion=3.7.0
 
objectStoreBase=/usr/local/fedora/data/objectStore
indexEngine=Solr
indexBase=http://localhost:8080/solr
 
indexDir=/usr/local/fedora/solr/collection1/data/index
indexingDocXslt=foxmlToSolr
Note

Warning! This Gsearch properties files are sensitive.  A space after the text file is extremely sensitive to whitespace. Ensure there are no extra characters/space at the end of a line may cause that entry to fail.each line!

 

8. Edit $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/fgsconfig-basic.xml (replace 'fgsconfig-basic.properties' with 'fgsconfig-basic-for-islandora.properties'):

...