SOLR installation Configuration

Source: Internet
Author: User
Tags solr

SOLR is a high-performance, Java 5-based full-text search server (Lucene focuses on the underlying construction of search, while SOLR focuses on enterprise applications. Lucene is not responsible for supporting the necessary management of search services ). At the same time, it is expanded to provide a richer query language than Lucene, and at the same time, it is configurable and scalable, and the query performance is optimized, it also provides a complete functional management interface and is a very good full-text search engine.

It provides APIs similar to Web-service. You can submit an XML file in a certain format to the search engine server through an HTTP request to generate an index. You can also use the http get operation to submit a search request and obtain the returned results in XML format;

Installation Configuration:

1. Download the zip package of SOLR and decompress it. Rename the war file under the DIST directory to SOLR. War and copy it to the webapps directory of Tomcat.

2. Set the master location of SOLR. The easiest way is to configure a JNDI of Java: COMP/ENV/SOLR/home in Tomcat to point to the SOLR home directory (under the example directory ), create the tomcat installation directory/CONF/Catalina/localhost/SOLR. XML file

SOLR. xml

<Context docBase="C:/tools/tomcat6.0/webapps/solr.war" debug="0" crossContext="true" >
<Environment name="solr/home" type="java.lang.String" value="C:/tools/tomcat6.0/webapps/solr" override="true" />
</Context>

Variable 1: context docbase = "" is the SOLR. War directory.

Variable 2: Environment name = "SOLR/home" must be written in this way (SOLR is the home directory of SOLR by default)

Variable 3: environment value = "D:/SOLR" value, which is the SOLR directory and must have

 

After the configuration is complete, start Tomcat access

 

 

 

 

 

 

  

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.