Compatibility #

Versions #

Kuzzle2.61 or later, within Kuzzle 2 (kuzzleVersion in manifest.json)
OpenSearch3.x, >=3 <4 (tested on 3.0.0 and 3.9.0)
OpenSearch client@opensearch-project/opensearch 3.9.0
Node.js22.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 3.0.0 or newer than 3.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:

CapabilityFeature
aggregationsaggregations / aggs in a search body
mappingUpdateschanging the mappings or the settings of an existing collection, including the users' mappings
statsstorage statistics (index:stats)
updateByQueryupdating 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".