SOLR Installation and configuration (Windows)

Source: Internet
Author: User
Tags solr

About SOLR:

SOLR is an open-source, Lucence Java-based search engine server. SOLR extends the lucence to provide a richer query language than Lucence, Sorl basically follows the lucence terminology. The search engine created by SOLR is fully compatible with the Lucence search engine library. SORL provides a level search, hit highlighting, and supports multiple input formats (Xml/xsl T and JSON format). Easy to install configuration with an HTTP-based management interface. SOLR has been more stable and used in many large Web sites, and is a very good full-text search engine. In addition, many Lucene tools (such as Nutch, Luke) can also use the index created by SOLR.

Lucence provides the underlying core technology for SOLR, and SOLR relies on lucence. But they are also different, lucence is a search base, not a standalone application, and SOLR is an application. Lucence focuses on the underlying applications and SOLR focuses on enterprise applications.

SOLR Installation:

  1. Installing the Java Environment
    Http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html
  2. Download Solr--solr-4.10.0.zip
    http://www.apache.org/dyn/closer.cgi/lucene/solr/4.10.0
    Unzip to a custom directory such as: D:\SOLR - path 1
  3. Download Tomcat--apache-tomcat-8.0.12.exe
    http://tomcat.apache.org/

    To install Tomcat:
    Customizable installation directory (note the installation directory because you want to configure environment variables) such as: D:\Program Files\apache software Foundation\tomcat 8.0 -- path 2
    To configure the Tomcat environment variable:
    Variable name: catalina_home
    Variable Value: Path 2
  4. Test whether the installation was successful
    To start Tomcat:
    Locate the bin directory under Tomcat installation directory path 2 and run Tomcat8w.exe

    Click Start

    Open the browser input url:http://localhost:8080 the contents indicate that the installation was successful.

  SOLR configuration:

  1. Copy Solr-4.10.0.war from the Dist folder under the SOLR directory to the WebApps folder of Tomcat and rename it to Solr.war. Then, in general, the WebApps folder will automatically generate the appropriate SOLR folder.
    (The Solr.war file is copied, and the Solr folder is automatically generated.) )
  2. Create a new Solr-tomcat folder with path customization. For example: Put under D:\SOLR (D:\solr\solr-tomcat-- path 3 at this point)
    After setting up the folder, in the Solr-tomcat folder and then set up a Solr folder, the original extracted in the SOLR directory inside the EXAMPLE\SOLR folder below all the files into the SOLR-TOMCAT\SOLR inside.
  3. Configure Solr_home
    Establish the variable name in the Windows environment variable: solr_home, the value of the variable is: (Path 3) D:\solr\solr-tomcat
  4. Under Tomcat's Conf folder (that is, path 2\conf), create the Catalina folder, create a localhost folder under the Catalina folder, and set up solr.xml under the localhost folder to write the following:
    <?xml version= "1.0" encoding= "Utf-8"?>
    <context docbase= "D:/program files/apache software foundation/tomcat 6.0/webapps/solr" debug= "0" crossContext= " True "> <environment name=" solr/home "type=" java.lang.String "value=" D:/SOLR/SOLR-TOMCAT/SOLR "override=" true " /> </Context>
    (The path here corresponds to its own installation path, note that the path delimiter here is "/" instead of "\")
  5. Open Browser Input: http://localhost:8080/solr/admin/(default is port 8080) if shown, indicates a successful configuration.

SOLR Installation and configuration (Windows)

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.