After Git repo is loaded to ES through bulk(), Line 180 performs an index refresh to make documents available for searching. The same operation is then repeated in Line 188; remove this duplicate refresh.
If you want/need to load data into a different es cluster just specify either the
* -H/--host option
* -p/--path option
ex: python load.py --host http://123.123.123.123:9200 -p /home/code/elasticsearch
Earlier I'd misread the Scripting and Security page about inline scripts
- turns out they are enabled by default. Earlier failures I saw were due
to old groovy syntax. Things are working after changing to painless.