Script elastic130

!!! breaking with version 1.1.x
update for the indexing when using ElasticSearch versions 1.2.x or 1.3.x