Solr running configuration and database data import to solr

Source: Internet
Author: User
Tags solr
One, run 1, solr run container, tomcat2, copy the apache-solr-3.6.0.war to the tomcat webapps directory, and renamed solr. war3, tomcat conf directory to establish the structure of confCatalinalocalhost two folders. Create two folders (the HOME directory of solr) with the structure of solr-tomcatsolr, for example

One, run 1, solr run container, tomcat 2, copy the apache-solr-3.6.0.war to the tomcat webapps directory, and renamed solr. war 3: create two folders in the conf directory of tomcat that are structured as conf/Catalina/localhost. Create two folders (the HOME directory of solr) with the structure of solr-tomcat/solr, for example

1. Run

1. solr running container, tomcat

2. Copy the apache-solr-3.6.0.war to the tomcat webapps directory and change it to solr. war.

3. Create two folders with the conf/Catalina/localhost structure in the conf directory of tomcat. Create two folders (the HOME directory of solr) with the structure of solr-tomcat/solr, such as the root directory of the d Drive, d:/solr-tomcat/solr, the solr-tomcat folder name can be any name, copy all files and folders under apache-solr-3.6.0 \ example \ solr to this

4. Create solr. xml in the localhost folder and save the following content:




5. You can run tomcat and enter http: // localhost: 8080/solr/admin in the address bar for verification.

6. Start adding configuration for the imported database data. Copy the jdbc driver jar and apache-solr-3.6.0 \ dist \ apache-solr-dataimporthandler-3.6.0.jar jar to tomcat's webapps/solr/WEB-INF/lib. Copy (and overwrite) all files and folders under apache-solr-3.6.0 \ example-DIH \ solr to the HOME Directory of solr, such as d:/solr-tomcat/solr

7. Change conf/solrconfig. xml in the solr Home directory and add the following content:



D: \ solr-tomcat \ solr \ db \ conf \ db-data-config.xml

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.