Compatibility #
Versions #
| Kuzzle | 2.61 or later, within Kuzzle 2 (kuzzleVersion in manifest.json) |
| OpenSearch | 2.19 or a later 2.x, >=2.19 <3 (tested on 2.19.0 and 2.19.7) |
| OpenSearch client | @opensearch-project/opensearch 2.13.0 |
| Node.js | 22.12 or later |
At startup, Kuzzle reads the driver's manifest.json before loading it, and does not start when its version is out of the kuzzleVersion range. The driver then refuses a cluster that is not OpenSearch, or an OpenSearch version older than 2.19.0 or newer than 2.x.
Kuzzle does not pin this driver: you choose its version in your application's package.json.
Capabilities #
A driver lists the optional features it implements in the capabilities field of its manifest. This one declares them all, so every Kuzzle API action works:
| Capability | Feature |
|---|---|
aggregations | aggregations / aggs in a search body |
mappingUpdates | changing the mappings or the settings of an existing collection, including the users' mappings |
stats | storage statistics (index:stats) |
updateByQuery | updating every document matching a query (document:updateByQuery, bulk:updateByQuery) |
Clusters #
Every node of a Kuzzle cluster must run the same driver, in the same version: a node running another one is refused when it joins, with a cluster.join.storage_driver_mismatch error.
Upgrading the driver means restarting every node on the new version, not a rolling restart.
Moving from Elasticsearch #
The driver does not migrate data. Move it with the engines' own tools (snapshot / restore, or a remote reindex from OpenSearch), then point client.node at the OpenSearch cluster.
Code that checks which engine it runs on reads engine from context.accessors.getStorageEngine() (plugins) or app.storage.getEngine() (applications): this driver answers "opensearch". Its versions up to 1.0.0-beta.3 answered "elasticsearch".