Settings settings = Settings.builder()
.put("cluster.name", "myClusterName").build();
TransportClient client = new PreBuiltTransportClient(settings);
这个类PreBuiltTransportClient 无法引用到?哪位大神帮忙看下!
.put("cluster.name", "myClusterName").build();
TransportClient client = new PreBuiltTransportClient(settings);
这个类PreBuiltTransportClient 无法引用到?哪位大神帮忙看下!
2 个回复
roc - 如:80后IT男..
赞同来自: yemaohai2016 、bjmajiancheng
maven增加如下依赖
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.0.0</version>
</dependency>
yemaohai2016 - ES初学者
赞同来自: