Versions Compared

Key

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

...


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

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


6. Restart Fedora to deploy GSearch and Solr

...

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

Code Block
languagexml
<?xml version="1.0" encoding="UTF-8"?>
<Context>
  <Parameter name="solr.home" value="/usr/local/fedora/solr" />
</Context>


12. Restart Fedora.

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

$ cd /usr/local/fedora/solr && /usr/local/fedora/tomcat/bin/startup.sh
Note
Depending on your setup, Solr 4.2.0 can throw errors depending on where it is started from.

 

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

 

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

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

...