Creates an ElasticClient which wraps an existing Client.
Creates an ElasticClient which wraps an existing Client.
Note: If you use this method, then calling close on the client instance will not shutdown any local node(s). Those must be managed by the caller of this method.
the client to wrap
Creates an ElasticClient by requesting a client from a given Node.
Creates an ElasticClient by requesting a client from a given Node.
Note: This method will not manage the lifecycle of the node. Calling close on the client will shutdown only the transport mechansim between the client and the node.
the node a client will connect to
Creates a local data node.
Creates a local data node. This is useful for embedded usage, or for unit tests.
the settings object to set on the node
Connects to elasticsearch instance(s) specified by the uri and setting the given settings object on the client.
Connects to elasticsearch instance(s) specified by the uri and setting the given settings object on the client.
Note: The method name 'transport' refers to the fact that the client will connect to the instance(s) using the transport client rather than becoming a full node itself and joining the cluster. This is what most people think of when they talk about a client, like you would in mongo or mysql for example. To create a local node, use the fromNode method.
the settings as applicable to the client.
the instance(s) to connect to.
the plugins to add to the client.
Creates an ElasticClient connected to the elasticsearch instance(s) specified by the uri.
Creates an ElasticClient connected to the elasticsearch instance(s) specified by the uri. This method will use default settings.
Note: The method name 'transport' refers to the fact that the client will connect to the instance(s) using the transport client rather than becoming a full node itself and joining the cluster. This is what most people think of when they talk about a client, like you would in mongo or mysql for example. To create a local node, use the fromNode method.
the instance(s) to connect to.
Creates a local data node.
Creates a local data node. This is useful for embedded usage, or for unit tests. Default settings will be applied.
(Since version 2.3.3) must specify path.home in elasticsearch now, so this method will throw
(Since version 2.0.0) use transport instead of remote
(Since version 2.0.0) use transport instead of remote
(Since version 2.0.0) use the transport method with an instance of ElasticsearchClientUri or uri format string
(Since version 2.0.0) use the transport method with an instance of ElasticsearchClientUri or uri format string