how to Setup Apache Solr in tomcat

>> Go hear to download the latest Java SE Runtime.

>> Download Apache TomCat


>> Test tomcat server on your browser, it'll look this way


>> Configure tomcat server, goto start > Monitor TomCat


>> Stop Tomcat server, goto Start > Monitor Tomcat > General Tab> Stop



>> Setup Solr Home Directory

  1. Download Latest Release of Solr and unzip it in your local directory i.e. C:\Solr-4.6.0.
  2. Go to downloaded Solr folder above (step 1) and Copy solr.war file to Apache webapps folder. I.e. Copy C:\solr-4.6.0\dist\solr-4.6.0.war file  to  C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps folder (rename solr-4.6.0.war to solr.war).
  3. Create an empty Solr home folder. i.e. C:\solr
  4. Go to downloaded Solr folder above (step 1). Copy all files from C:\solr-4.6.0\solr-4.6.0\example\solr folder to C:\solr (Solr home folder). This will be your Solr home folder.
  5. Look into C:\solr and you will see two folders with name collection1 and bin.
  6. Copy the jars from C:\solr-4.6.0\example\lib\ext (all jars) into C:\Program Files\Apache Software Foundation\Tomcat 8.0\lib (this is your Tomcat server main library directory).
  7. Set the Java system property solr.solr.home to your Solr Home. Go to Windows > Start > Monitor Tomcat > Java Tab > Java Options. Enter the following entry at the end (see below screenshot): -Dsolr.solr.home=c:\solr

>> Restart apache TomCat, goto Start > Monitor Tomcat > General Tab> Stop


>> Test solr on browser http://localhost:8983/solr/




Comments

Popular posts from this blog

SQL Interview Questions and Answers

Generic Interface and Factory Pattern in C#

How to get device info IMEI programmatically in xamarin android