Copies documents into a different index
ElasticsearchReindex.dot.svg
ElasticsearchReindexConfiguration.json
{ "source": { "hosts": [ "localhost" ], "port": 9300, "clusterName": "elasticsearch", "indexes": [ "activity" ], "types": [ "activity" ], "forceUseConfig": true }, "destination": { "hosts": [ "localhost" ], "port": 9300, "clusterName": "elasticsearch", "index": "activity2", "type": "activity", "forceUseConfig": true } }
Populate source and destination in configuration with cluster / index / type details.
mvn clean package verify
mvn -Pdocker clean package docker:build
java -cp dist/elasticsearch-reindex-0.2-incubating-jar-with-dependencies.jar -Dconfig.file=`pwd`/src/main/resources/application.json org.apache.streams.example.elasticsearch.ElasticsearchReindex docker run elasticsearch-reindex:0.2-incubating java -cp /elasticsearch-reindex-0.2-incubating-jar-with-dependencies.jar -Dconfig.url=http://<location_of_config_resource> org.apache.streams.example.elasticsearch.ElasticsearchReindex