Creating search template targeting a specific index

Hi, I am using ES(6.7) search templates to support my queries from as application at work . Our DEV and QA share the same ES nodes(Total 2 nodes). We name our indices dev-* and qa-* to identify each index b/w Dev and QA. The searchtemplate api documentaion doesn't specify an option to give an index name while creating a template here 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.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.