【solr】添加分词器ik-analyzer-solr

项目在此基础上solr7.2.1+tomcat8.5.37+jdk8安装配置

 

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包复制到

【solr】添加分词器ik-analyzer-solr

 添加分词字段类型

<!-- 分词类型 -->
<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>

【solr】添加分词器ik-analyzer-solr

 【solr】添加分词器ik-analyzer-solr

 【solr】添加分词器ik-analyzer-solr

相关推荐