Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am temporafugiunt on github.
  • I am temporafugiunt (https://keybase.io/temporafugiunt) on keybase.
  • I have a public key ASDc1hb7nt7ZiKUVe1KFCrjAOJUNjKqM_Rl8bH0adu9hYgo

To claim this, I am signing this object:

@temporafugiunt
temporafugiunt / Reindexer.java
Created December 7, 2017 15:24 — forked from jpotts/Reindexer.java
Use a scroll and the bulk api to reindex docs in an Elasticsearch index within the same cluster
public class Reindexer extends BaseElasticsearchUtility {
private static Log logger = LogFactory.getLog(Reindexer.class);
public static void main(String[] args) {
if (args.length != 5) {
doUsage();
System.exit(-1);
}