ESClient

Instantiates an embedded Elasticsearch client with the same configuration as the one provided in the .kuzzlerc file.

This client can be used to send raw Elasticsearch request.

See Elasticsearch official documentation for more information.


Constructor

This class constructor takes no argument.


Example

Copied to clipboard!
const esClient = new context.constructors.ESClient();

await esClient.info();