- Java Transport Client (deprecated): other versions:
- Preface
- Maven Repository
- Deploying in JBoss EAP6 module
- Client
- Document APIs
- Search API
- Count API
- Aggregations
- Percolate API
- Query DSL
- Indexed Scripts API
IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Client
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Client
editYou can use the Java client in multiple ways:
Obtaining an elasticsearch Client
is simple. The most common way to
get a client is by:
-
Creating an embedded
Node
that acts as a node within a cluster. -
Requesting a
Client
from your embeddedNode
.
Another manner is by creating a TransportClient
that connects to a cluster.
Important:
Please note that you are encouraged to use the same version on client and cluster sides. You may hit some incompatibility issues when mixing major versions.
Was this helpful?
Thank you for your feedback.