Solr4.9 + tomcat7 multicore

Source: Internet
Author: User
Tags solr

Es does not support groupby, so I want to see how SOLR is implemented.

Build Environment:

1) download tomcat7 and solr4.9 and decompress them;

2) configure the tomcat7 port and uriencoding (UTF-8 );

3) Copy SOLR \ Dist \ solr-4.9.0.war to Tomcat \ webapps and rename it SOLR. War;

4) Restart tomcat, SOLR. War automatic deployment, modify solrhome in webapps \ SOLR \ WEB-INF \ WEB. XML, as follows:

<env-entry>       <env-entry-name>solr/home</env-entry-name>       <env-entry-value>D:\solrHome\solr</env-entry-value>       <env-entry-type>java.lang.String</env-entry-type>    </env-entry>

Solrhome: D: \ solrhome \ SOLR

5) Create solrhome. The file structure is as follows:

Where contirb is copied from: solr-4.9.0 \ contrib; (optional)

SOLR \ core0, SOLR \ core1 copy from: solr-4.9.0 \ example \ multicore

SOLR. xml copied from: solr-4.9.0 \ example \ SOLR. xml

 

6) copy the solr-4.9.0 \ example \ Lib \ ext \ *. jar to Tomcat \ Lib

Copy the solr-4.9.0 \ example \ resources \ log4j. properties to Tomcat \ Lib

7) Restart Tomcat

8) Enter localhost: Port/SOLR/

 

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.