create recover() method on ElasticSearchSink