This is a schema migration framework for Elasticsearch (7+).
To use it:
npm install @lastcall/elasticsearch-migrate
- Configure it.
To configure migrations, create a new entry in your project's
package.json with the key
Each configuration option is optional, with a good default provided. Options are described below:
root: The root directory to use when resolving the migrations pattern (defaults to the current working directory).
migrations: Glob patterns pointing to migration files, which must be in
.jsformat. Defaults to
@elastic/elasticsearchClient object, or an object specifying the Elasticsearch configuration.
index: The Elasticsearch index to use for tracking migration status. Defaults to