Elasticsearch indexing script