Setup elasticsearch.