Compatibilityedit

The minimum supported version of Node.js is v8.

The library is compatible with all Elasticsearch versions since 5.x. We recommend you to use the same major version of the client as the Elasticsearch instance that you are using.

Elasticsearch Version Client Version

master

master

7.x

7.x

6.x

6.x

5.x

5.x

To install a specific major of the client, run the following command:

npm install @elastic/elasticsearch@<major>

Browseredit

There is no official support for the browser environment. It exposes your Elasticsearch instance to everyone, which could lead to security issues. We recommend you to write a lightweight proxy that uses this client instead.