Creating a template and setting fields to 'not_analyzed'

I am able to succesfully create a template from sense. However, I am trying to set two fields application and hostname to not_analyzed. The below only works for one field e.g. "match": "application" or "match": "hostname". However, I cant get them both set to not_analyzed by doing "match": ["application", "hostname"]. Any idea how I can set in the template both application and hostname to be not_analyzed?

PUT _template/mytemplates
                      "match": ["application", "hostname"],
                          "omit_norms" : true,

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