Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: References of "$FEDORA_HOME/tomcat" changed to "$FEDORA_HOME/base" since Fedora Commons hasn't used "tomcat" folder name for some time and now uses "base"

...

Code Block
languagebash
$ unzip fedoragsearch-2.6.zip
$ cd fedoragsearch-2.6.zip
$ cp -v fedoragsearch.war /usr/local/fedora/tomcatbase/webapps


2. Download Solr 4.2.0 and unpack.

...

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


5. Edit the file $FEDORA_HOME/server/config/fedora-users.xml to add an additional user:

...

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

$ /usr/local/fedora/tomcatbase/bin/startup.sh


7. 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/tomcatbase/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

...

Code Block
languagebash
$ cp -v /usr/local/fedora/tomcatbase/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/conf/schema-4.2.0-for-fgs-2.6.xml $FEDORA_HOME/solr/collection1/conf/schema.xml


11. Create a context file for Solr at /usr/local/fedora/tomcatbase/conf/Catalina/localhost/solr.xml

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<Context docBase="/usr/local/fedora/tomcatbase/webapps/solr.war" debug="0" crossContext="true">
  <Environment name="solr/home" type="java.lang.String" value="/usr/local/fedora/solr" override="true"/>
</Context>

...

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

$ /usr/local/fedora/tomcatbase/bin/startup.sh

 

13. Test your installation by going to http://localhost:8080/fedoragsearch/rest

...