Index mappings and settings file

Hi all,

I know it's possible to store mappings in individual
$ES_HOME/config/mappings/[index_name]/[mapping_name].json files, but is
there a way to store all mappings and settings in a single file for a given
index?

Basically I just want to have these index settingshttps://gist.github.com/clintongormley/1088986 stored
in a file instead of using the API. Being new to ElasticSearch, I don't
see how to do this.

Thanks!
GB

--
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.

You can also use index templates:

I also prefer to use file-based mappings since I can keep them under source
control.

--
Ivan

On Sat, Mar 16, 2013 at 12:01 PM, Guillaume Bilodeau <
guillaume.bilodeau@gmail.com> wrote:

Hi all,

I know it's possible to store mappings in individual
$ES_HOME/config/mappings/[index_name]/[mapping_name].json files, but is
there a way to store all mappings and settings in a single file for a given
index?

Basically I just want to have these index settingshttps://gist.github.com/clintongormley/1088986 stored
in a file instead of using the API. Being new to Elasticsearch, I don't
see how to do this.

Thanks!
GB

--
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.

--
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.