Solr environment Configuration

Source: Internet
Author: User
Tags solr

 

1. Put the DIST \ apache-solr-3.6.1 under the apache-solr-3.6.0.war folder to the webapps directory under Tomcat and rename it SOLR. War

2. Copy the SOLR folder in the SOLR \ example directory under the apache-solr-3.6.1 folder to the Tomcat directory.

3. Change the conf \ Server. xml file in the Tomcat directory and find

(1) <connectorport ="8080"Protocol ="HTTP/1.1"Connectiontimeout ="20000"

Uriencoding ="UTF-8"Redirectport ="8443"/>

JoinUriencoding = "UTF-8"To enable SOLR to support Chinese Characters

(2) Insert the following code to change the SOLR path.

<Context Path = "/SOLR" docbase ="C: \ Program Files \ apache-Tomcat-6.0.14 \ webapps \ SOLR. War"

DEBUG ="0"Crosscontext ="True">

<Environmentname ="SOLR/home"Type ="Java. Lang. String"Value ="C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR"Override ="True"/>

</Context>

4. Change the SOLR \ conf \ solrconfig. xml file in the Tomcat directory.

<Datadir>$ {SOLR. Data. dir: C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR \ data}</Datadir>

SOLR. Data. dir:The storage path of the corresponding index file. Set it to SOLR \ data under tomcat.

5. Set classpath: "; C: \ Program Files \ apache-Tomcat-6.0.14 \ SOLR"

6. Start tomcat, http: // localhost: 8080/SOLR/admin to enter the SOLR management interface.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.