Elastic search related scripts