This project contains tests for different cases of schema alteration in Elasticsearch.
- Start Elasticsearch using Docker:
docker-compose up -d
- Install dependencies:
npm install
- Run the tests:
npm test
- Adding new fields
- Updating multiple targets
- Adding properties to existing object fields
- Adding multi-fields to existing fields
- Changing supported parameters
- Changing field mappings (via reindex)
- Renaming fields (via alias)
To stop Elasticsearch and Kibana,
docker-compose down
To remove volumes as well,
docker-compose down -v
To get started:
- Make sure Docker is running
- Run npm run start to start Elasticsearch and Kibana
- Wait ~30-60 seconds for the services to be ready
- Run npm test to execute all the tests
Kibana will be available at http://localhost:5601 if you want to explore the indices and data.