Search engine Solr environment setup instance

Source: Internet
Author: User
Tags solr

Search engine Solr environment setup instance

The Solr server is developed using Java 5 and is based on Lucene full-text search. To build Solr, first configure the java environment and install the corresponding jdk and tomcat.

The latest solr4.10.3 version is set up in the jdk1.7 and tomcat 1.7 environments.

The procedure is as follows:

1. Go to http://developere.apache.org/solr/mirrors-solr-latest-redir.html.

2. Create a directory/webapps/mysolr/solr

3. decompress the package solr-4.10.3, find the solr. war package in webapps under example, and decompress it.

4. Copy the decompressed war package (solr folder) to the directory created in Step 1:/webapps/mysolr

5. Copy the jar packages in two places to/webapps/mysolr/solr/WEB-INF/lib

(1) All jar packages in the lib package under example

(2) All jar packages in the ext package under lib under example

6. Copy the log4j. properties file under example/resource to/webapps/mysolr/solr/classpath.

7. solrhome Configuration:

Create a solrhome Directory:/webapps/mysolr/solrhome, and copy all files under example/solr to/webapps/mysolr/solrhome.

Then modify the configuration file/webapps/mysolr/solr/WEB-INF/web. xml, release the solr/home annotation and configure it as follows:

<Env-entry>
<Env-entry-name> solr/home </env-entry-name>
<Env-entry-value>/webapps/mysolr/solrhome </env-entry-value>
<Env-entry-type> java. lang. String </env-entry-type>
</Env-entry>

8. Deploy/webapps/mysolr/solr to tomcat and start tomcat.

After completing the basic setup of the solr environment, visit http: // loclhost: 8080/solr to see the following interface:

 

Solr3.6.1 build an environment in Tomcat6

Tomcat-based Solr3.5 cluster deployment

Load Balancing for Solr clusters using Nginx on Linux

Install and use Solr in Linux

Deploy Solr 4 on Ubuntu 12.04 LTS through Tomcat

Solr implements Low Level query parsing (QParser)

Build a search Server Based on Solr 3.5

Solr 3.5 development and application tutorial PDF

Solr 4.0 deployment instance tutorial

Solr details: click here
Solr: click here

This article permanently updates the link address:

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.