Getting started #
kuzzle-storage-es-9 is the Elasticsearch 9 storage driver of Kuzzle 2. It is Kuzzle's Elasticsearch 8 driver on the Elasticsearch 9 client: same mappings, same queries, same errors. Kuzzle 2 does not ship it: you install it next to Kuzzle.
Install #
Install the package in your application, next to kuzzle:
npm install kuzzle-storage-es-9Then select it in your .kuzzlerc, with the address of your Elasticsearch 9 cluster:
{
"services": {
"storageEngine": {
"driver": "kuzzle-storage-es-9",
"client": { "node": "http://localhost:9200" },
},
},
}majorVersion is not read when driver is set, and Kuzzle logs a warning if both are set: remove majorVersion. The same works with the kuzzle_services__storageEngine__driver environment variable.
Check #
At startup, Kuzzle logs the driver it runs:
[ℹ] Storage driver: kuzzle-storage-es-9@<version>The rest of services.storageEngine is described in Configuration.