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 a TransportClient
that connects to a cluster.
The client must have the same major version (e.g. 2.x
, or 5.x
) as the
nodes in the cluster. Clients may connect to clusters which have a different
minor version (e.g. 2.3.x
) but it is possible that new functionality may not
be supported. Ideally, the client should have the same version as the
cluster.
Was this helpful?
Thank you for your feedback.