Hi,
Now, one can define one or more mappings under the config/mappings
directory in elasticsearch installation. Each time an index is created, the
mappings will be applied to an index created automatically. Note, the
mapping file name should be [mappingName.json]. More info here:
http://github.com/elasticsearch/elasticsearch/issues/issue/86.
-shay.banon