Extension:SolrStore/Install Solr

=Install Apache Solr under Ubuntu=

This Tutorial describes how to install a local Tomcat Server with the newest Solr Version.

Java Runtime Environment installieren
At First we need a Java Runtime Environment. You can use OpenJdk or Oracle (Sun) Java Version 6+

aptitude install default-jre

or

apt-get install openjdk-6-jdk

Tomcat downloading and install
At Firts we need the newest Tomcat Version from Apache.org. If this link isn't working anymore go to tomcat.apache.org

cd /opt wget http://artfiles.org/apache.org/tomcat/tomcat-7/v7.0.30/bin/apache-tomcat-7.0.30.tar.gz       tar xvfz apache-tomcat-7.0.30.tar.gz        ln -s apache-tomcat-7.0.30 tomcat rm apache-tomcat-7.0.30.tar.gz

Solr downloading and install
Now we need the Newest Version of Solr. You can find it on the Apache Site (http://www.apache.org/dyn/closer.cgi/lucene/solr/)

cd /opt wget http://apache.imsam.info/lucene/solr/3.6.1/apache-solr-3.6.1.tgz tar xvfz apache-solr-3.6.1.tgz rm apache-solr-3.6.1.tgz

Now we deploy Apache Solr to the Tomcat Server. Copy the war File from the "dist" dir to your Tomcat webapps folder.

cd /opt cp apache-solr-3.6.1/dist/apache-solr-3.6.1.war tomcat/webapps/solr.war

Now copy the Multicore Example to your Solr Folder /opt/solr. Now you can delete the other solr files, we dont need them.

cd /opt cp -R apache-solr-3.6.1/example/multicore/ solr rm -R apache-solr-3.6.1

Now we can start your new Tomcat server.

Note: It's important to strat the Tomcat Server from /opt, otherwise the Tomcat Server will not find your solr dir.

cd /opt ./tomcat/bin/startup.sh

Now you can see your solr Cores and the admin interface under the url http://yourserver:8080/solr

Your Solr Server is now ready to use, but you should maybe add some security configuration

Secure your Installation
Your have just to do a few steps to scure your server.

Move your Data:

Create a new dir and change it in your Solr config. If you use 2 cores you have to change it for eache of them:

mkdir /var/solr vi /opt/solr/solr.xml

before :

 

after:

 

Tomcat logging.properties:
Your Logging Properties should be reduced to SEVERE, otherwise it will be realy big realy fast.

Edit the logging.properties File in /opt/tomcat/conf

vi /opt/tomcat/conf/logging.properties

Default is "FINE". You should change it from "FINE" to "SEVERE"

=Install Apache Solr under Windows=
 * 1) Extract Apache Solr, then go to the /dist folder. Copy the war file (.war) to the folder   and rename it to.
 * 2) Create an index folder.
 * 3) Copy the content of the folder   (from Extension:SolrStore) into the index folder.
 * 4) Edit solr.xml (in the index folder) and change   to.
 * 5) Java settings of   should be added to your   (xampp 1.7.7) file (search for  ).

Depending on the LocalSettings ( e.g. ) the Solr admin interface should be available at (e.g.  ) together with its index files ( e.g.   ).

Other important files (schema.xml etc.) can be found at ( e.g.  ).

More information on installing Solr on Windows can be found in this blog post.