WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Compatibility
editCompatibility
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.