CENTOS7:SOLR installation, configuration and use configure the JDK environment, install Tomcat decompression SOLR
- Bin: Is the startup directory of the script
- Contrib: third-party Package storage Directory
- Dist: The directory where the built output product is stored after compiling the package
- DOCS:SOLR Document Storage Directory
- Example: Storage directory for demonstration examples
- Licenses: Permissions-related
Deploy the SOLR project
- Deploy the project under/example/webapps/to Tomcat
- Add all the jar packages under the/example/lib/ext directory under the SOLR source package to the SOLR project.
Create a solrhome.
The/EXAMPLE/SOLR directory under the source package is a solrhome. Copy this directory directly.
Associated SOLR and Solrhome.
Modify the Web. xml file for SOLR project
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>solrhome路径</env-entry-value> <env-entry-type>java.lang.String</env-entry-type></env-entry>
Launch Tomcat, Access SOLR
Url:ip:端口/solr/
Configuring the Chinese Parser 1. Analyze Chinese to join the project
1. Add Ikanalyzer2012ff_u1.jar to the Lib directory of the SOLR project
2. Put the extended dictionary and configuration file in the Web-inf/classes directory of the SOLR project.
2. Configure a FieldType to make use of Ikanalyzer
Modify SOLR's Schema.xml file to add FieldType:
<fieldType name="text_ik" class="solr.TextField"> <analyzer class="org.wltea.analyzer.lucene.IKAnalyzer"/></fieldType>
CENTOS7:SOLR installation, configuration and use