Elasticsearch. Is it possible to set mapping for field in index for all types?
Use the _default_ mapping setting on the Index. When the type is created it will have the field mapping your looking for.
PUT /my_index{"mappings": { "_default_": { "properties": { "field1": { "type": "string", "index": "analyzed" } } }}
You could also use an Index Template, if you wanted all new indexes to have this default setting. I think it would be a good enhancement to have a Dynamic Templates be available at Index Level so they can be applied across types. This doesn't appear possible now.
Maybe you could make use of a multi index PUT Request:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-put-mapping.html#put-mapping-multi-index