Skip to content

Latest commit

 

History

History
33 lines (31 loc) · 543 Bytes

File metadata and controls

33 lines (31 loc) · 543 Bytes

Elasticsearch migration script

A simple migration script written in CoffeeScript.

Install

cd elasticsearch-migration-script
npm install

Configuration

Change the es configuration in config.json

{
  "bulkSize": 1000,
  "origin": {
    "host": "localhost:9200",
    "version": "1.7",
    "index": "twitter",
    "type": "tweet"
  },
  "target": {
    "host": "localhost:9201",
    "version": "5.5",
    "index": "twitter",
    "type": "tweet"
  }
}

Run the script

coffee index.coffee

Good luck!