Windows TOMACT,JDK SOLR Build SOLR

Source: Internet
Author: User
Tags solr

Tools:

    1. jdk8.0 (solr6.1.0 must be installed jdk8.0, start loading 7.0 finally unloaded): http://www.oracle.com/technetwork/java/javase/downloads/index-jsp-138363.html

    2. solr6.1.0 http://www.apache.org/dyn/closer.lua/lucene/solr/6.1.0

    3. Tomact (I'm under the 8.5) http://tomcat.apache.org/

Steps:

1. Install the JDK first, ensure the cmd, input javac can run (self-Baidu);

2. Re-install Tomcat to ensure localhost:8080 normal access (self-Baidu)

3.

A. Unzip SOLR. Copy the WebApp directory under the Solr/server/solr-webapp folder to the Tomcat/webapps folder and rename the WebApp directory named Solr.

B. Copy the jar package from the Solr/server/lib/ext to the Tomcat/webapps/solr/web-inf/lib directory.

C. Create a new Solr_home folder in any of the drive characters (I created on the D drive). Copy the SOLR/SERVER/SOLR directory to the Solr_home. This is the directory that you need to use to create the index instance core later. Both the configuration file (Schema.xml) and the index are saved here.

D. Copy the log4j.properties under Solr/server/resources to the Tomcat/webapps/solr/web-inf/classes directory. Such as. Classes does not exist manually created.

F. Configure Web. Xml. Open the Web. XML under Tomcat/webapps/solr/web-inf. Find the following configuration content

<env-entry> <env-entry-name>solr/home</env-entry-name> <ENV-ENTRY-VALUE>/PUT/YOUR/SOLR /home/here</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry >

Release the comment and modify the env-entry-value to your solr_home address. my address is D:/SOLR_HOME/SOLR.

Ok. Save. By the way, restart Tomcat. Then enter http://localhost:8080/solr/index.html in the browser. Just start my configuration after the direct input http://localhost:8080/solr enter prompt 404. 4.x deployment so it can be opened, 5.x must be entered into the index.html. The solr Admin UI means you're done.

4. Add the core

Create Core1 (Custom) under the tomcat/solrhome/directory, create the data folder under its directory, and tomcat7/solrhome/configsets/basic_configs/ The Conf folder under directory is copied to core1. Then click Add Core in the SOLR console

650) this.width=650; "Src=" http://img.blog.csdn.net/20160310100712549?watermark/2/text/ Ahr0cdovl2jsb2cuy3nkbi5uzxqv/font/5a6l5l2t/fontsize/400/fill/i0jbqkfcma==/dissolve/70/gravity/center "alt=" Center "/>


Name: Give the core a name

Instancedir:core installation directory, this is the Core1 folder that was previously created in the tomcat/solrhome/directory

DataDir: Specifies the directory path that is used to hold the Lucene index and log file, relative to the core root (in single core mode, directly relative to Solr_home), and the default value is data under the current core directory.

Config: Used to specify the file name of the Solrconfig.xml configuration file and will go to the Core1/config directory when it starts .

Schema: That is, to configure the file name of your Schema.xml profile, the Schema.xml configuration file should be stored in the Conf directory under the current core directory. But there's no such file in the download of SOLR, so I don't care.

Properties are filled in, then click Add Core and the creation is complete.


Windows TOMACT,JDK SOLR Build SOLR

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.