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