init elasticsearch script