Java utility tool to export data from elasticsearch to text file