Template

if one template name is template_one, args "template":"a*";another name is template_two,args "template":"aa*".If i create index name is "aa_20160709",which template will use.The args just is the simple wildcard,not is regax.

Have you read https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-templates.html#multiple-templates?