Registry / http-client / elasticsearch-rest-client

elasticsearch-rest-client

JSON →
library9.4.2javamavenunverified

Low-level REST client for communicating with an Elasticsearch cluster.

<dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>elasticsearch-rest-client</artifactId> <version>9.4.2</version> </dependency>
INSTALL
IMPORT
SIG · ELASTICSEARCH-REST
E
elasticsearch-rest-client
http-clientjavav9.4.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

RestClient
org.elasticsearch.client.RestClient

Creates a low-level REST client for Elasticsearch.

import org.elasticsearch.client.RestClient; public class Main { public static void main(String[] args) throws Exception { RestClient client = RestClient.builder( new HttpHost("localhost", 9200, "http") ).build(); client.close(); } }
Debug
Known issues
breakingBreaking changes between major versions (e.g., 7.x to 8.x) require code migration.
fix
Refer to the Elasticsearch migration guide for your version.
affects: >=8.0.0
Upgrade
Version history
9.4.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
24 hits · last 30 days
node
22
Resources
elasticsearch-rest-client — mvn dependency:get elasticsearch-rest-client · libregistry