index-elasticsearch script