Trying to upgrade to elasticsearch 1.3

I took the naive approach and used inline script