solr5.5, and the configuration of the first core

Source: Internet
Author: User
Tags solr tomcat tomcat server
1. Material

windows+tomcat8+jdk7+solr5.5 (Note: JDK installation, and Tomcat download, tomcat under decompression version, not described here) solr5.5 Download Address

http://apache.fayea.com/lucene/solr/5.5.0/ Build SOLR 5.5 The first step, set up a Search Folder, folder name random, such as: Solr_server

The second step is to copy the downloaded Tomcat 8 to this directory, at this time the directory structure is as follows:

The third step, download SOLR 5.5, after downloading SOLR 5.5, extract to the desktop, directory structure as shown
Fourth, copy the WebApp folder under the Solr-5.5.0\server\solr-webapp to the Tomcat-8\webapps directory, and rename it to Shfw_search, the directory structure as shown below
Fifth step, go to the Solr-5.5.0\server directory, copy the SOLR folder under this directory to the same directory as Tomcat, as shown in
Sixth step, go to Solr_server\tomcat-8\webapps\shfw_search\web-inf, open Web. XML, find Env-entry in Web. XML, modify SOLR home, as shown below

Note: here. /.. Why does/solr/make this value, and why is it so configured, this is because SOLR's default Env-entry-value start location is under Tomcat's Bin folder, so: /.. /solr/This means that, under the Bin folder of the previous directory, and then the next level of the SOLR folder under the directory, that is, Solr_server under the Solr folder, is the location of Solr Solrhome, I don't think it's good that everyone else on the web put the Solrhome (SOLR) folder directly in the Tomcat bin directory. Another benefit of this configuration here is that when we deploy the application, as long as we copy the Solr_server to the target server, we start Tomcat, we do not need to modify any configuration, as a general configuration, to specify the specific drive letter, from development to deployment server, You need to change the location of the solrhome. Seventh step, go to Solr-5.5.0\server\lib\ext, and copy all the jar packages to solr_server\tomcat-8\webapps\shfw_search\web-inf\classes eighth step, Go to solr-5.5.0\server\resources and copy the log4j.properties to the Solr_server\tomcat-8\webapps\shfw_search\web-inf\lib directory for Nineth step, Start the Tomcat server and enter http://localhost:8080/SHFW_SEARCH/admin.html in the address bar to see the SOLR configuration succeed. The result diagram is as follows:
Add Core

Go to the SOLR_SERVER\SOLR folder and create a folder to store your core, such as my jobs

-Go to the Solr-5.5.0\server\solr\configsets\sample_techproducts_configs folder and copy the Conf directory under this folder to the folder of the core you just created, That is, under my Jobs folder

Enter http://localhost:8080/SHFW_SEARCH/admin.html in the browser, go to the SOLR Admin page, click on the core admin on the left, then click Add Core, in the name and Instancedir Enter jobs (get the name in step one), click Add Core to

-At this point in the input http://localhost:8080/SHFW_SEARCH/admin.html, you can see the newly created core on the left
Then enter into the Solr_server\solr\jobs directory, you will find a data folder and a properties file, as shown in figure


Data directory for storing index files, core.properties files for core configuration information

By this solr5.5, and the first core, it's over.

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.