springboot+elasticsearch + rabbitMQ实现全文检索(项目搭建)

最近做一个社区类的项目:实现全文检索

开发完成做一个总结记录。

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

 

猜你喜欢

转载自www.cnblogs.com/mfser/p/10149851.html