...
Installing Solr and GSearch
1. Download fedoraGSearch from SourceForge.net and extract the contents of the compressed file. Copy the file GSearch 2.6, unzip and copy fedoragsearch.war to the Tomcat webapps folder ($CATALINA_HOME/webapps).
Code Block |
---|
|
$ unzip fedoragsearch-2.6.zip
$ cd fedoragsearch-2.6.zip
$ cp ~/fedoragsearch.war $FEDORA$CATALINA_HOME/tomcat/webapps/ |
2. Download Solr to your local environment and unpack the downloaded file.4.2.0 and unpack.
Code Block |
---|
|
$ tar -xzvf solr-4.2.0.tgz |
3. Create a directory for Solr, and copy the contents of solr-4.2.0/example/solr. These instructions presume that it will be installed at ~/opt/usr/local/fedora/solr:
Code Block |
---|
|
$ mkdir -p /opt/solr |
4. Drag or mv the .war file that is located under the dist directory of your unpacked download to the newly created /opt/solr directory.
5. Copy the directory apache-solr-x.x.x/example/solr to $FEDORA_HOME/solr and /exmaple/webapps/solr.war to $FEDORA_HOME/tomcat/webapps
Code Block |
---|
cp -r apache-solr-x.x.x/example/solr $FEDORA_HOME/solr
cp apache-solr-x.x.x/example/webapps/solr.war $FEDORA_HOME/tomcat/webapps/ |
usr/local/fedora/solr
$ cp -Rv solr-4.2.0/example/solr/* /usr/local/fedora/solr |
4. Copy solr-4.2.0.war to $CATALINA_HOME/webapps.
Code Block |
---|
|
$ cp -v solr-4.2.0/dist/solr-4.2.0.war $CATALINA_HOME/webapps |
56. Edit the file $FEDORA_HOME/server/config/fedora-users.xml to add an additional user:
Code Block |
---|
<user name="fgsAdmin" password="[password]">
<attribute name="fedoraRole">
<value>administrator</value>
</attribute>
</user> |
6. Restart Tomcat to deploy GSearch and Solr
<BREAK>
7. Edit the file $FEDORA_HOME/tomcat/webapps/fedoragsearch/FgsConfig/fgsconfig-basic.properties
...