es配置文件:
    三个节点:
    elasticsearch.yml

    1. cluster.name: ES #集群name要求一致
    2. node.name: jcyl1 #节点名不能一样
    3. network.host: 0.0.0.0
    4. http.port: 9200
    5. transport.tcp.port: 9300
    6. http.cors.enabled: true
    7. http.cors.allow-origin: "*"
    8. node.master: true
    9. node.data: true
    10. discovery.zen.ping.unicast.hosts: ["192.168.0.36:9300","192.168.0.116:9300","192.168.0.52:9300"]
    11. discovery.zen.minimum_master_nodes: 3
    12. gateway.recover_after_nodes: 2
    13. cluster.initial_master_nodes: jcyl1

    ik分词器配置文件
    IKAnalyzer.cfg.xml

    1. <?xml version="1.0" encoding="UTF-8"?>
    2. <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
    3. <properties>
    4. <comment>IK Analyzer 扩展配置</comment>
    5. <!--用户可以在这里配置自己的扩展字典 -->
    6. <entry key="ext_dict"></entry>
    7. <!--用户可以在这里配置自己的扩展停止词字典-->
    8. <entry key="ext_stopwords"></entry>
    9. <!--用户可以在这里配置远程扩展字典 -->
    10. <entry key="remote_ext_dict">https://tje.e-mall365.com/noparticiples.dic</entry>
    11. <!--用户可以在这里配置远程扩展停止词字典-->
    12. <entry key="remote_ext_stopwords">https://tje.e-mall365.com/participles.dic</entry>
    13. </properties>