es configuration

  • IK Dictionary Configuration

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    <properties>
      <comment>IK Analyzer 扩展配置</comment>
      <!--用户可以在这里配置自己的扩展字典 -->
      <entry key="ext_dict">custom/mydict.dic;custom/single_word_low_freq.dic</entry>
       <!--用户可以在这里配置自己的扩展停止词字典-->
      <entry key="ext_stopwords">custom/ext_stopword.dic</entry>
       <!--用户可以在这里配置远程扩展字典 -->
      <entry key="remote_ext_dict">location</entry>
       <!--用户可以在这里配置远程扩展停止词字典-->
      <entry key="remote_ext_stopwords">http://xxx.com/xxx.dic</entry>
    </properties>
  • Hot words cannot be updated, and ES needs to be restarted every time the dictionary is modified
  • For hot word updates, see Use nginx to quickly build

Kibana test

GET _analyze
{
  "analyzer": "ik_smart",
  "text": "三体"
}
This article is from qbit snap

qbit
268 声望279 粉丝

引用和评论

0 条评论