Linux Cluster Series (iii): SOLR full-Text Search server Deployment (Solr-5.2.1)

Source: Internet
Author: User
Tags solr tomcat server

SOLR introduces SOLR role

SOLR is a high performance, using Java5 development, based on Lucene Full-Text Search server. At the same time, it is extended to provide a richer query language than Lucene , while it is configurable, extensible, and optimized for query performance, and provides a complete functional management interface, a very good Full-Text search engine .

SOLR download

http://archive.apache.org/dist/lucene/solr/

SOLR Application Deployment Readiness:

1. The Linux system already has JDK and Tomcat installed

2. SOLR Compression Pack: solr-5.2.1.tgz

Deploying the SOLR Server

1. Upload the solr-5.2.1.tgz to Linux.


2. Unzip the SOLR-5.2.1.TGZ compressed package, unzip the command:

     TAR–XZVF solr-5.2.1.tgz

The folder structure of the unpacked package, unlike the previous version, is that the SOLR deployment package is placed in the server folder, and Collection1 needs to be created on its own, and then the ConfigSet configuration in/SERVER/SOLR is copied to the folder you created.


3. Copy the/server/webapps/solr.war to the WebApps of Tomcat.

Copy command:

    Cp–r Solr.war/usr/local/tomcat7/webapps

4. Go to TOMCAT7, unzip the war, and then delete the war package.

    Cd/usr/local/tomcat7/webapps    Unzip Solr.war–d SOLR

5. Copy SOLR-related dependency jar packages into/usr/local/tomcat7/webapps/solr/web-info/lib

Copy command:

cp–r */usr/local/tomcat7/webapps/solr/web=info/lib

6. Go to/usr/local/tomcat7/webapps/solr/web=info/Modify the Solr/home in Web. xml

    <env-entry>      <env-entry-name>solr/home</env-entry-name>      <env-entry-value>/usr/ Local/solr/server/solr</env-entry-value>      <env-entry-type>java.lang.string</env-entry-type >    </env-entry>

7. Modify the encoding urlencoding= "UTF-8" in Tomcat's Server.xml file

    <connector      port= "8080"     <span style= "color: #ff0000;" > urlencoding= "UTF-8" </span>      redirectport= "8443"      connectiontimeout= "20000" protocol= "      http/1.1 "    />

8. Start the Tomcat server and access the http://localhost:8080/solr/

If you have configured IP , please visit IP , but not localhost .

9. Create a core in SOLR

Note: Create directly Core , an error occurs.

9.1 Creating the Collection1 folder

   mkdir Collection1

9.2 Copy the Conf folder in Configsets/sample_techproducts_configs to Collection1, and data and other files are automatically created by SOLR.

   Cp–r Configsets/sample_techproducts_configs Collection1

9.3 Go to the http://localhost:8080/solr/page and enter into Core_admin to create the core named Collection1. Created successfully.

10. Test SOLR

1. Add index

2. Querying the Index

Linux Cluster Series (iii): SOLR full-Text Search server Deployment (Solr-5.2.1)

Related Article

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.