Create Mapping for new field when using json files

I am currently creating mapping for each index by placing json mapping
files under /config/mappings/[index_name] directory as
per: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-conf-mappings.html

The process works great when new index is introduced but i am not able to
figure out how to create mappings using json config files when new field is
introduced in existing index.

http PUT mapping is not an option as the servers are not http enabled. And
doing PUT through Java API on each env seems cumbersome as there are lots
of them.

Other option that i thought of was to create new version of index with new
field and reindex documents as mentioned
in http://www.elasticsearch.org/blog/changing-mapping-with-zero-downtime/.
Keeping this as last resort if there is no other way to do it.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

bump

On Wednesday, November 20, 2013 3:54:27 PM UTC-8, hemant pahilwani wrote:

I am currently creating mapping for each index by placing json mapping
files under /config/mappings/[index_name] directory as per:
Elasticsearch Platform — Find real-time answers at scale | Elastichttp://www.google.com/url?q=http%3A%2F%2Fwww.elasticsearch.org%2Fguide%2Fen%2Felasticsearch%2Freference%2Fcurrent%2Fmapping-conf-mappings.html&sa=D&sntz=1&usg=AFQjCNEz7ryeycuL2T8ez0tGFqZ4pPVhLA

The process works great when new index is introduced but i am not able to
figure out how to create mappings using json config files when new field is
introduced in existing index.

http PUT mapping is not an option as the servers are not http enabled.
And doing PUT through Java API on each env seems cumbersome as there are
lots of them.

Other option that i thought of was to create new version of index with new
field and reindex documents as mentioned in
Elasticsearch Platform — Find real-time answers at scale | Elastichttp://www.google.com/url?q=http%3A%2F%2Fwww.elasticsearch.org%2Fblog%2Fchanging-mapping-with-zero-downtime%2F&sa=D&sntz=1&usg=AFQjCNEXC1bLQ8rTVWsMrtlW9s98zo8RJg.
Keeping this as last resort if there is no other way to do it.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.