Creates an ElasticClient which wraps an existing Client.
Creates an ElasticClient which wraps an existing Client.
the client to wrap
(Since version 6.0.0) Use the http client, it doesn't bring in half the internet in dependencies
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
(Since version 6.0.0) Use the http client, it doesn't bring in half the internet in dependencies
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
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.
(Since version 6.0.0) Use the http client, it doesn't bring in half the internet in dependencies
(Since version 6.0.0) Use the http client, it doesn't bring in half the internet in dependencies