read commits from elasticsearch