美文网首页
分词插件安装

分词插件安装

作者: 我吃火锅666 | 来源:发表于2018-09-22 13:24 被阅读0次

./bin/elasticsearch-plugin installhttps://github.com/medcl/elasticsearch-analysis-ik/releases/download/v6.3.2/elasticsearch-analysis-ik-6.3.2.zip

1、安装完成后在plugins下会出现analysis-ik目录

2、在config目录下也会出现analysis-ik目录,这里主要配置词库

<?xml version="1.0" encoding="UTF-8"?>

http://java.sun.com/dtd/properties.dtd">

<properties>

    <comment>IK Analyzer 扩展配置</comment>

    <!--用户可以在这里配置自己的扩展字典 -->

    <entry key="ext_dict">extra_single_word_low_freq.dic</entry>

    <!--用户可以在这里配置自己的扩展停止词字典-->

    <entry key="ext_stopwords">extra_stopword.dic</entry>

    <!--用户可以在这里配置远程扩展字典 -->

    <!-- <entry key="remote_ext_dict">words_location</entry> -->

    <!--用户可以在这里配置远程扩展停止词字典-->

    <!-- <entry key="remote_ext_stopwords">words_location</entry> -->

</properties>

相关文章

网友评论

      本文标题:分词插件安装

      本文链接:https://www.haomeiwen.com/subject/fatxoftx.html