adding text to elastic search and creating text files