Schema configuration for SORL

Source: Internet
Author: User
Tags solr

What data needs to be imported before the SOLR domain is defined and used? Word breaker

1 word breaker Jar pack copy, CP ik\ Analyzer\ 2012ff_hf1/ikanalyzer2012ff_u1.jar

Chinese word breaker configuration file and dictionary cp ext_stopword.dic IKAnalyzer.cfg.xml mydict.dic to web_inf/classes;

2 to use the current word breaker, make it effective solrhome/collection1/conf/schema.xml;

<fieldtype name= "Text_ik" class= "SOLR. TextField ">

<analyzer class= "Org.wltea.analyzer.lucene.IKAnalyzer"/>

</fieldType>

Add Business field again

<field name= "Item_sell_point" type= "Text_ik" indexed= "true" stored= "true"/> using a word breaker

<field name= "Item_price" type= "Long" indexed= "true" stored= "true"/> Not applicable to Word breakers

You can also add a replication domain multivalued= "true" <copyField>

  

Schema configuration for SORL

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.