Versions Compared

Key

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

...

Code Block
languagebash
$ unzip fedoragsearch-2.6.zip
$ cd fedoragsearch-2.6.zip
$ cp -v fedoragsearch.war /usr/local/fedora/basetomcat/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/basetomcat/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/basetomcat/bin/shutdown.sh

$ /usr/local/fedora/basetomcat/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/basetomcat/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

Gsearch properties files are sensitive.  A space after the text at the end of a line may cause that entry to fail.

 

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

Code Block
languagetext
-- <property file="fgsconfig-basic.properties" />
-- <copy file="fgsconfig-basic.properties" tofile="fgsconfig-basic-${configDisplayName}.properties" preservelastmodified="true" />
-- <copy file="fgsconfig-basic.properties" tofile="${templateConfigPath}/${configDisplayName}/${finalConfigName}/fgsconfig-basic-${configDisplayName}.properties" preservelastmodified="true" />


++ <property file="fgsconfig-basic-for-islandora.properties" />
++ <copy file="fgsconfig-basic-for-islandora.properties" tofile="fgsconfig-basic-${configDisplayName}.properties" preservelastmodified="true" />
++ <copy file="fgsconfig-basic-for-islandora.properties" tofile="${templateConfigPath}/${configDisplayName}/${finalConfigName}/fgsconfig-basic-${configDisplayName}.properties" preservelastmodified="true" />


89. Navigate to $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/and run Apache ant on fgsconfig-basic.xml

Code Block
languagebash
$ cd /usr/local/fedora/tomcat/webapps/fedoragsearch/FgsConfig/
$ ant -f fgsconfig-basic.xml


910. Rename the current Solr schema.xml file to schema.bak

Code Block
languagebash
$ mv -v /usr/local/fedora/solr/collection1/conf/schema.xml $FEDORA_HOME/solr/collection1/conf/schema.bak


1011.  Copy the new, ant-generated Solr schema into place as schema.xml

Code Block
languagebash
$ cp -v /usr/local/fedora/basetomcat/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


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

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


1213. Restart Fedora.

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

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

 

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

...

  1. Login using fedoraAdmin 
  2. Click on updateindex
  3. Click on updateIndex fromFoxmlFiles

1415. GSearch and Solr will need to be further configured to index specific datastreams. Sample GSearch and Solr configurations can be found here and here.

...