NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Compatibility
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Compatibility
editThe 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 |
|---|---|
|
|
|
|
|
|
|
|
To install a specific major of the client, run the following command:
npm install @elastic/elasticsearch@<major>
Browser
editThere 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.