Migrating ElasticSearch schema

When we write an application, we also write migrations for the database schema and data, we use liquibase .

For example, I am deploying an application locally as a developer on my machine, the application uses elasticsearch, but I need to do some queries / mappings before adding some data.

So, I want to add this request / mappings to some files, so when another developer deploys the application on their machine, this request will be executed automatically.

What tools / library are used to migrate the ElasticSearch schema?

+3


source to share


1 answer


I created a long-standing project that I still maintain that creates an index with all settings and mappings if it doesn't exist at startup.

elasticsearch-beyonder

available at https://github.com/dadoonet/elasticsearch-beyonder .



It currently only works with TransportClient, but I am also planning to add support for the Java REST client.

0


source







All Articles