[Resolved]Interger field defined in index template is treated as string, it looks like the interger mapping doesn't take effect

Hi Ignacio_Vera,

  1. returned nothing when sending request GET _template/kvaudit

  2. I tried GET _template/kvaudit*, and it returned below template to me, the template looks like inserted as expected. Does the issue happens on mapping? as when I created the index named kvaudit*, it shows me that if1, if2, if3, if4 are all string. Please refer to below screenshot.

    {
    "kvaudit.json" : {
    "order" : 0,
    "index_patterns" : [
    "kvaudit*"
    ],
    "settings" : {
    "index" : {
    "number_of_shards" : "1",
    "codec" : "best_compression",
    "number_of_replicas" : "0"
    }
    },
    "mappings" : {
    "properties" : {
    "at" : {
    "type" : "keyword"
    },
    "if2" : {
    "type" : "integer"
    },
    "if1" : {
    "type" : "integer"
    },
    "ktf1" : {
    "type" : "keyword"
    },
    "kf2" : {
    "type" : "keyword"
    },
    "if4" : {
    "type" : "integer"
    },
    "kf1" : {
    "type" : "keyword"
    },
    "if3" : {
    "type" : "integer"
    },
    "kf3" : {
    "type" : "keyword"
    }
    }
    },
    "aliases" : { }
    }
    }