es配置文件:
三个节点:
elasticsearch.yml
cluster.name: ES #集群name要求一致
node.name: jcyl1 #节点名不能一样
network.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300
http.cors.enabled: true
http.cors.allow-origin: "*"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.0.36:9300","192.168.0.116:9300","192.168.0.52:9300"]
discovery.zen.minimum_master_nodes: 3
gateway.recover_after_nodes: 2
cluster.initial_master_nodes: jcyl1
ik分词器配置文件
IKAnalyzer.cfg.xml
<?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"></entry>
<!--用户可以在这里配置自己的扩展停止词字典-->
<entry key="ext_stopwords"></entry>
<!--用户可以在这里配置远程扩展字典 -->
<entry key="remote_ext_dict">https://tje.e-mall365.com/noparticiples.dic</entry>
<!--用户可以在这里配置远程扩展停止词字典-->
<entry key="remote_ext_stopwords">https://tje.e-mall365.com/participles.dic</entry>
</properties>