企业网页设计网站案例,绍兴seo淄博公司,2018做网站的软件,wordpress视屏播放器不同版本的java 与 Elastic 如何连接。
在 es 与 java 连接中最重要的就是『兼容性矩阵」#xff0c;要严格按照兼容性矩阵的要求来部署 spring boot 或者 es的版本#xff0c;否则会有意向不到的错误或者程序无法运行等等。
针对 es 6.2.2#xff0c;java 客户端的配置代…不同版本的java 与 Elastic 如何连接。
在 es 与 java 连接中最重要的就是『兼容性矩阵」要严格按照兼容性矩阵的要求来部署 spring boot 或者 es的版本否则会有意向不到的错误或者程序无法运行等等。
针对 es 6.2.2java 客户端的配置代码如下
方式1
elasticsearch:transport-client idclient cluster-nodeslocalhost:9300 /方式2
elasticsearch:node-client idclient localtrue path-homelocalhost:9300 /参考资料针对es3.1.x版本https://github.com/spring-projects/spring-data-elasticsearch/tree/3.1.x
https://docs.spring.io/spring-data/elasticsearch/docs/3.1.5.RELEASE/reference/html/#elasticsearch.repositories
针对 es 其他版本