You want to look at http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html Also, the link you provided earlier is from 0.90.X, which is now really old. If you are on that version it's best to upgrade.
PS - We're moving to https://discuss.elastic.co/, please join us there for any future discussions! On 11 May 2015 at 06:49, Mohamed TEYEB <mohamed.te...@gmail.com> wrote: > Hi, > > Right now, I have only one index which does contain 1 type. So I did > create the mapping and place under the config/mapping as explained by the > documentation : > http://www.elastic.co/guide/en/elasticsearch/reference/0.90/mapping-conf-mappings.html > . > > For the future, I would like to do the following : > - Index will be daily : index_name_*YYYYMMDD* > - Index will contains N types : index_name_*type1*, index_name_*type2*, > ... index_name_*typeN* > - All types will have the same format/mapping. > > How can I handle this case with a pre-configured mapping set in the > sub-folder config/mapping ? > I know that I can handle it somehow but putting a default mapping, but > will it work with more than one index case? > Example : I would do a default mapping for all indexes which have a > common prefix (INDEX_A_*YYYYMMDD* => mapping_A, INDEX_B_*YYYYMMDD* => > mapping_B, etc ...) > > BR/ > > -- > Please update your bookmarks! We moved to https://discuss.elastic.co/ > --- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/a06c0542-1910-4fc7-8a3f-ca899e36fc4d%40googlegroups.com > <https://groups.google.com/d/msgid/elasticsearch/a06c0542-1910-4fc7-8a3f-ca899e36fc4d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Please update your bookmarks! We moved to https://discuss.elastic.co/ --- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9x_4Rhn-tEkwaqG6xYYXa951349zUk1a3nMw5tZ8Nqrg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.