es blog:
https://www.elastic.co/blog/found-java-clients-for-elasticsearch
github官方:
https://github.com/searchbox-io/Jest
https://github.com/searchbox-io/Jest/issues
https://github.com/searchbox-io/Jest/tree/master/jest/src/test/java/io/searchbox/core 常用功能
JestResult 9大实现类
客户端形式:
private static final JestClient jestClient;
static {
JestClientFactory factory = new JestClientFactory();
factory.setHttpClientConfig(new HttpClientConfig.Builder("http://115.28.232.241:9200")
.multiThreaded(true)
.build());
jestClient = factory.getObject();
}
spring引入方式:
#方式一
elasticsearch:
jest:
uris: http://115.28.232.241:9200
read-timeout: 30s
connection-timeout: 30s
#方式二
#data:
#elasticsearch:
#cluster-nodes: 101.201.141.231:9300
#cluster-name: car_model