springboot+elasticsearch + rabbitMQ實現全文檢索(項目搭建)
阿新 • • 發佈:2018-12-20
runt mage ans log 127.0.0.1 改變 引用 復制 ping
最近做一個社區類的項目:實現全文檢索
開發完成做一個總結記錄。
spring-boot-1.5.9.RELEASE
ES 5.6.4
首先搭建ES環境
引用大佬文章 搭建ES環境:
https://blog.csdn.net/u012270682/article/details/72934270
cluster.name: my-application node.name: node-1 network.host: 0.0.0.0 http.port: 9200 http.cors.enabled: true http.cors.allow-origin: "*" node.master: true node.data:true
本地最後ES C:\elasticsearch-6.5.1\config\elasticsearch.yml 配置
因為本人的原因,需要改掉head 的端口:C:\elasticsearch-6.5.1\elasticsearch-head-master\Gruntfile.js
復制三個相同的ES
cluster.name: my-elasticsearch node.name: node-1 network.host: 127.0.0.1 http.port: 9200 transport.tcp.port: 9300 discovery.zen.ping.unicast.hosts: ["127.0.0.1:9300","127.0.0.1:9301","127.0.0.1:9302"] http.cors.enabled: true http.cors.allow-origin: "*" node.master: true node.data: true
插入相同數據,每個都要改變端口號,對於後面四個參數的解釋:https://blog.csdn.net/a19860903/article/details/72467996
springboot+elasticsearch + rabbitMQ實現全文檢索(項目搭建)