SOLR7.9+TOMCAT7 Environment Construction under windows

Source: Internet
Author: User
Tags solr


1. Download SOLR. Tomcat (can not download.) Since SOLR has jetty support)
2.SOLR deployment to Tomcat
First, put the war packet in the Solr-4.9.0\example\solr-webapp under the decompression packet into Tomcat WebApp
Secondly. is to put Solr-4.9.0\example\lib\ext (5) Log packets into the D:\tomcat\webapps\solr\WEB-INF\lib, At the same time, under Web-inf, create a new classes folder into the Jar (log4j.properties) under Solr-4.9.0\example\resources, and then change the home folder location in Web. xml
Finally, to build SOLR's home directory, I set up the SOLR directory under D, copy all the files under the SOLR-4.9.0\EXAMPLE\SOLR to that directory, and stare at the jar loaded at SOLR startup
By now, we can start SOLR.


IK word breaker configuration
IK Analyzer 2012ff_hf1.zip, put the extracted ikanalyzer2012ff_u1.jar under Solr-4.9.0\example\solr-webapp\webapp\web-inf\lib. Put IKAnalyzer.cfg.xml and Stopword.dic under Solr-4.9.0\example\solr-webapp\webapp\web-inf\classes. Create one without a classes directory.

(the word breaker will be intact later)
References Link: http://www.xdps.org/2014/08/08/220/
The configuration is basically complete, now is the test breaker, and join multiple cores, how to start solr (assuming that after joining multiple SOLR, restarting Tomcat discovery is a 500 error, this is to go into Tomcat, start SOLR. Reload
Add for example the following in the Shcema.xml to test the word effect
<fieldtype name= "Text_ik" class= "SOLR. TextField ">
<analyzer class= "Org.wltea.analyzer.lucene.IKAnalyzer"/>
</fieldType>

<field name= "ik" type= "Text_ik" indexed= "true" stored= "true" multivalued= "false"/>

Note: The installation of the JDK and configuration in the win environment, the network is very many incorrect, in fact, just to configure one is enough, there is a register of Tomcat into the window service of various wonderful problems, read more log

Windows SOLR7.9+TOMCAT7 Environment Setup

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.