标题: Elasticsearch 入门实战(5)--Java API Client 使用 [打印本页] 作者: 小秦哥 时间: 2022-8-31 06:40 标题: Elasticsearch 入门实战(5)--Java API Client 使用 本文主要介绍 Elasticsearch Java API Client 的使用,相关的环境及软件信息如下:CentOS 7.6.1810、Java 1.8.0_321(客户端用)、Elasticsearch 8.2.2。
1、Java API Client 的特点
Strongly typed requests and responses for all Elasticsearch APIs.
Blocking and asynchronous versions of all APIs.
Use of fluent builders and functional patterns to allow writing concise yet readable code when creating complex nested structures.
Seamless integration of application classes by using an object mapper such as Jackson or any JSON-B implementation.
Delegates protocol handling to an http client such as the Java Low Level REST Client that takes care of all transport-level concerns: HTTP connection pooling, retries, node discovery, and so on.