<p dir="auto"><a href="https://www.elastic.co/guide/en/elasticsearch/reference/2.3/indices-templates.html" rel="nofollow">Here</a> we have;</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="PUT /_template/template_1
{
  &quot;template&quot;: &quot;te*&quot;,
  &quot;settings&quot;: {
    &quot;number_of_shards&quot;: 1
  }"><pre class="notranslate"><code class="notranslate">PUT /_template/template_1
{
  "template": "te*",
  "settings": {
    "number_of_shards": 1
  }
</code></pre></div>
<p dir="auto">As you can see we reference the term <strong>template</strong> 3 times in 3 lines, which is pretty loaded - even if the second (<code class="notranslate">template_1</code>) is an example name of a template.</p>
<p dir="auto">I was speaking to a new user the other day and they mentioned that the second reference to <strong>template</strong> isn't immediately obvious that it applies to the index name/pattern that this template should match.</p>
<p dir="auto">I thought I'd raise this issue to see if perhaps we can rename it to <code class="notranslate">match_pattern</code>, or <code class="notranslate">index_pattern</code> or something else that is a little more descriptive.</p>
<p dir="auto"><strong>Description of the problem including expected versus actual behavior</strong>:<br>
The short explaination:<br>
The field template In templates is vague because it is pattern matching the indices which will be working on, I think that the name should be somthing like Index pattern or so.</p>
<p dir="auto">The Long one:<br>
First to mention, I have started to use elasticsearch today,<br>
I have used a twitter template which I couldn't understand why is not working.<br>
I have searched the template file maybe It contains the index name and thats the reason It didn't work , I have noticed that when I changed the index name to the template name everything was just fine so I understood that I need to write about Index templates and I have understood that there is an index pattern matching with the template name.</p>