Elasticsearch - Index a email containing image and text


I have to index emails which contain text and images both. I have looked at LIRE and mapper attachment plugin but is there a way to combine both?

This is a image of my email. I also want to extract fields like place, date and time. This is just a sample, actual data may be different.


I am familiar with neither of these plugins, but for the record, this is something that you could do on client-side as well, by extracting the MIME parts from the email and building a document from the (meta)data manually.