How to get Geometry(Binary Data) into Text format into Elastic search jdbc importer?

I have spatial data. Data is successfully put on elastic search using jdbc importer but the spatial data is stored on binary format. i want stored in text format. I user PostgreSQL for the Database. Can any one done this thing before?