Elasticsearch mapping for Indexing

How to create elasticsearch mapping to index a same string in "analyzed" and "not analyzed" fields.

The default Logstash template makes sure there's a .raw subfield for all string fields, if that helps:

Thanks @magnusbaeck. I will check this.