CENTOS7:SOLR installation, configuration and use

Source: Internet
Author: User
Tags solr

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

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.