title: Creating Elasticsearch template targeting a specific index ES 6.x
body: <p>All, I am using <strong>ES(6.7)</strong> <strong>search templates</strong> to support my queries from an <strong>ASP.NET</strong> application at work . Our DEV and QA share the same ES nodes (Total 2 nodes). We name our indices <strong>dev-<em></strong> and <strong>qa-</em></strong> to identify each index b/w <strong>Dev</strong> and <strong>QA</strong>. The search template api documentation doesn't specify an option to give an index name while creating a template here <a href="https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-template.html" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/6.4/search-template.html</a>. We have some 30 search templates in DEV. So Is my only option is to create separate templates targeting DEV and QA? I know while invoking a search template from the code(NEST), we have to specify the index name, but if I am working on an enhancement in DEV that requires an update to an existing search template, that will break the search in QA that uses the same template. Please let me know if there is a better approach.</p>