Default mappings for new indexes that match a pattern?

I'm creating a new index, one per day.

I'd like to set the default mappings used by wildcard.

So this way the first time an index is created , the new mappings are used
based on the wildcard.

I have some fields which are tokens/URLs that I don't want analyzed.

So what I want to do is create a mapping saying that these aren't analyzed
and then when a new index is created, the default mapping is applied with
all my type settings.

Is this possible to do by wildcard? For example, "content*" or do I have
to have one per day? One per day wouldn't be super fun.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4151b580-3c10-4c4a-a016-14d1c7d66da0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

nevermind. Looks like index templates are exactly what I need!

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-templates.html

On Saturday, December 6, 2014 2:27:11 PM UTC-8, Kevin Burton wrote:

I'm creating a new index, one per day.

I'd like to set the default mappings used by wildcard.

So this way the first time an index is created , the new mappings are used
based on the wildcard.

I have some fields which are tokens/URLs that I don't want analyzed.

So what I want to do is create a mapping saying that these aren't analyzed
and then when a new index is created, the default mapping is applied with
all my type settings.

Is this possible to do by wildcard? For example, "content*" or do I have
to have one per day? One per day wouldn't be super fun.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/5a213c51-0d9f-4795-b80c-dee3289c4ad4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.