Instead, you should be using the Java High Level REST Client,
which executes HTTP requests rather than...The Java High Level REST Client currently has support for the more commonly usedAPIs, but there are a...high-level REST client completeness....RestClient是低版本的Rest客户端,基于http协议实现,对于ES中各种操作也能够很好的支持,但是api相对复杂,无法提供更“java化”的交互,简单点说对于客户端与服务端的请求和响应棱角过明显...RestHighLevelClient是基于低版本客户端RestClient实现的高亮Rest客户端,目前官方极力推荐使用RestHighLevelClient来访问ES,如果发现高版本RestClient