Versions Compared

Key

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

...

Code Block
<user name="fgsAdmin" password="[password]">
   <attribute name="fedoraRole">
     <value>administrator</value>
   </attribute>
  </user>

6. Restart Tomcat Fedora to deploy GSearch and Solr

 

...

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

$ /usr/local/fedora/tomcat/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=configProductionOnSolr=configProductionSolr
gsearchBase=http://localhost:8080
gsearchAppName=fedoragsearch
 
gsearchUser=fgsAdmin
gsearchPass= [password]
finalConfigPath=/usr/local/fedora/tomcat/webapps/fedoragsearch/WEB-INF/classes
 
logFilePath=${local.FEDORA_HOME=}/usr/local/fedoraserver/logs
logLevel=DEBUG
namesOfRepositories=FgsRepos
 
namesOfIndexes=FgsIndex
[keep name in order not to modify GUI for GSearch]

fedoraBase=http://localhost:8080
[to access objects from index in GUI for GSearch]
fedoraAppName=fedora
 
fedoraUser=fedoraAdmin
fedoraPass=[password]
fedoraVersion=3.7.0
 
objectStoreBase=${local.FEDORA_HOME}/data/objectStore
indexEngine=Solr
indexBase=http://localhost:8080/solr
 
indexDir=${local.FEDORA_HOME}/solr/collection1/data/index
indexingDocXslt=foxmlToSolr

7. 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" />
Note
Gsearch properties files are sensitive.  A space after the text at the end of a line may cause that entry to fail.

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

Code Block
languagebash
$ cd $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/

$ ant -f fgsconfig-basic.xml

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

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

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

Code Block
languagebash
$ cp -v $FEDORA_HOME/tomcat/webapps/fedoragsearch/WEB-INF/classes/fgsconfigFinal/index/FgsIndex/conf/schema-x4.x2.x0-for-fgs-x2.x6.xml $FEDORA_HOME/solr/collection1/conf/schema.xml

11. Restart Fedora.

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

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

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

...