Versions Compared

Key

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

...

Installing Solr and GSearch

1. Download GSearch 2.67, 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.67.zip
# unzip fedoragsearch-2.67.zip
# cd fedoragsearch-2.67
# cp -v fedoragsearch.war /usr/local/fedora/tomcat/webapps

...

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.78.01
 
objectStoreBase=/usr/local/fedora/data/objectStore
indexEngine=Solr
indexBase=http://localhost:8080/solr
 
indexDir=/usr/local/fedora/solr/collection1/data/index
indexingDocXslt=foxmlToSolr

...


9. Navigate to $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/and run Apache ant on fgsconfig-basic.xml (you may need to install ant)

Code Block
languagebash
# apt-get install ant
# cd /usr/local/fedora/tomcat/webapps/fedoragsearch/FgsConfig/
# ant -f fgsconfig-basic.xml

...

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.67.xml $FEDORA_HOME/solr/collection1/conf/schema.xml

...

  1. Verify that fedoraGSearch and Solr are both installed and running.
    Go to http://localhost:8080/solr
  2. Solr does not automatically load existing content upon installation. Go to Core Admin -> Reload tab
  3. Download the Islandora Solr Search Module and install as a Drupal module, as you did in the Starter Kit modules
  4. Log in to your Drupal site to enable the islandora_solr_search module. Administer > Modules and enable Islandora Solr Search
  5. Access the [Structure]:[Blocks] tab, go to the bottom of the blocks list in the Disabled section, find the "+ Islandora simple search" block and drag it up to the Sidebar first section.
  6. Replace the original Drupal search block with the one from Islandora on the sidebar
  7. You should now be able to see the Islandora search box in the on the sidebar. 


...