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
本文介绍了如何配置和使用Jest作为Elasticsearch的Java客户端。包括从esblog和github官方资源获取信息,展示了Jest的常见配置方式,如静态初始化和Spring集成,以及其在多线程环境下的应用。
3438

被折叠的 条评论
为什么被折叠?



