Product Engineer, CTO & a Beer Enthusiast
Experiments, thoughts and scripts documented for posterity.
April 14th, 2015
The following scala script reads from one index and writes to another script using Scan and scroll method. The script also takes in a partial function where the values from one index can be manipulated before saving into another index. This script assumes you have a field called "id" and an field called "submitDate" so it can continually perform scan and scroll once the preliminary index copy is done, so keep the index's in sync.