Friday, June 17, 2011

Configure Apache Solr in Tomcat

Method 1:

        1. download solr from http://apache.is.co.za/lucene/solr/ and extract somewhere.
        2. create a folder /usr/local/solr
        3. copy the contents of example/solr folder from source to /usr/local/solr folder.
        4. copy the dist/apache-solr-1.4.1.war from source to /usr/local/solr.
        5. create solr.xml file in tomcate/conf/Catelina/localhost with following contents.

 Method 2:

        1. just copy the dist/apache-solr-1.4.1.war into tomcate/webapp.
        2. just start the tomcat and stop it. It will create solr folder.
        3. then copy example/solr/conf from source into tomcat/webapp/solr.
        4. start the server. create data folder inside the webapp/solr if needed.

No comments:

Post a Comment