Generic batch tool for indexing text files with ElasticSearch