Add custom field type to ElasticSearch
It is definitely possible to add a custom field type to elasticsearch through a plugin. That's exactly what the Mapper attachments plugin does to make available the custom attachment type. Have a look at the code, it's on github.