Registry / networking / transport

transport

JSON →
library7.17.29javamavenunverified

Elasticsearch transport client for connecting to Elasticsearch clusters via the transport protocol.

<dependency> <groupId>org.elasticsearch.client</groupId> <artifactId>transport</artifactId> <version>7.17.29</version> </dependency>
INSTALL
IMPORT
SIG · TRANSPORT
T
transport
networkingjavav7.17.29
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.

TransportClient
✓ org.elasticsearch.client.transport.TransportClient

Create a transport client to connect to Elasticsearch.

import org.elasticsearch.client.transport.TransportClient; import org.elasticsearch.common.settings.Settings; import org.elasticsearch.common.transport.TransportAddress; import java.net.InetAddress; public class Example { public static void main(String[] args) throws Exception { Settings settings = Settings.builder().put("cluster.name", "myCluster").build(); TransportClient client = new TransportClient(settings) .addTransportAddress(new TransportAddress(InetAddress.getByName("localhost"), 9300)); System.out.println("Connected to Elasticsearch"); client.close(); } }
Debug
Known issues
breakingTransportClient is deprecated in Elasticsearch 7.x and removed in 8.x; use the Java REST client instead.
fix
Use org.elasticsearch.client:elasticsearch-rest-high-level-client for 7.x or the new Java client for 8.x.
affects: >=7.0.0
Upgrade
Version history
7.17.29latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
21
OpenAI (training)
1
Resources
transport — mvn dependency:get transport · libregistry