Creates an ElasticClient which wraps an existing Client.
Creates an ElasticClient which wraps an existing Client.
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.
the node a client will connect to
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.
Any options set on the URI will be added to the given settings object before the client is created. If a setting is specified in both the settings object and the uri, the version in the supplied settings object will be used.
Any given plugins will be added to the client in addition to the standard plugins provided by the PreBuiltTransportClient instance.
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 settings from the URI string and default plugins.
The created client will use the standard plugins provided by the PreBuiltTransportClient instance.
the instance(s) to connect to.
(Since version 5.0.0) use transport