完整代码与资料下载,问题交流,请加QQ群,群号(1047661092)
史上最全elasticsearch JAVA API使用代码,包括了几乎所有的常用查询API示例。
Elasticsearch 会在7.0之后的版本废弃TransportClient,在8.0之后的版本移除TransportClient (文档)。因此,使用RestClient来进行相关的操作。
We plan on deprecating the
TransportClient
in Elasticsearch 7.0 and removing it completely in 8.0. Instead, you should be using the Java High Level REST Client, which executes HTTP requests rather than serialized Java requests. The migration guidedescribes all the steps needed to migrate.
取而代之的是High Level REST Client。
我们是Springboot2.x使用的High Level REST Client。
完整代码与资料下载,问题交流,请加QQ群,群号(1047661092)