suxiaoyang 1164851911 ES完善配置信息 6 年 前
..
src 1164851911 ES完善配置信息 6 年 前
pom.xml fb104b763b es 6 年 前
readme.md 1935c29bea readme 6 年 前

readme.md

  1. 该公共包提供了transport和jest的ES服务接口
  2. 如果只需要transport请使用elasticsearch-transport-starter

#配置示例 spring: elasticsearch:

cluster-name: jkzl #默认即为elasticsearch  集群名
cluster-nodes: 172.19.103.45:9300,172.19.103.68:9300 #配置es节点信息,逗号分隔,如果没有指定,则启动ClientNode
client-transport-sniff: false #是否开启嗅探
jest:
  uris: http://172.19.103.45:9200,http://172.19.103.68:9200 #jest的uri
  connection-timeout: 60000 #Connection timeout in milliseconds.
  multi-threaded: true #Enable connection requests from multiple execution threads.