Copies documents into a different index
Populate source and destination in configuration with cluster / index / type details.
Start up elasticsearch with docker:
mvn -PdockerITs docker:start
Build with integration testing enabled, using your credentials
mvn clean test verify -DskipITs=false -DargLine="-Dconfig.file=`pwd`/application.conf"
Shutdown elasticsearch when finished:
mvn -PdockerITs docker:stop
java -cp dist/elasticsearch-reindex-jar-with-dependencies.jar -Dconfig.file=file://<location_of_config_file> org.apache.streams.elasticsearch.example.ElasticsearchReindex
mvn -Pdocker -Ddocker.repo=<your docker host>:<your docker repo> docker:build docker:push
docker run elasticsearch-reindex java -cp elasticsearch-reindex-jar-with-dependencies.jar -Dconfig.url=http://<location_of_config_file> org.apache.streams.elasticsearch.example.ElasticsearchReindex