IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Client
editClient
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 incompatibilities issues when mixing major versions.