lionelf 2020-04-20
github:https://github.com/magese/ik-analyzer-solr
历史版本下载地址:https://search.maven.org/search?q=g:com.github.magese%20AND%20a:ik-analyzer&core=gav
下载的jar包复制到
添加分词字段类型
<!-- 分词类型 --> <fieldType name="text_ik" class="solr.TextField"> <analyzer type="index"> <tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" conf="ik.conf" useSmart="false"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> <analyzer type="query"> <tokenizer class="org.wltea.analyzer.lucene.IKTokenizerFactory" conf="ik.conf" useSmart="false"/> <filter class="solr.LowerCaseFilterFactory"/> </analyzer> </fieldType>