Unable to create raw field in index template in elk6

# vi XXXX.json 
{
    "template" : "XXXXX*",
    "settings" : {
      "index" : {
        "number_of_shards" : "2",
        "number_of_replicas" : "1",
        "refresh_interval" : "5s"
      }
    },
    "mappings": {
      "properties": {
        "city": {
          "type": "text",
          "fields": {
            "raw": {
              "type": "keyword",
              "index": "false"
            }
          }
        }
      }
    }
}

# curl -u XXXXXX:XXXXXX -k -X PUT "https://`hostname`:9200/_template/XXXXX?pretty" -H 'Content-Type: application/json' -d @/XXXX/XXXX.json
{
  "error" : {
    "root_cause" : [
      {
        "type" : "mapper_parsing_exception",
        "reason" : "Root mapping definition has unsupported parameters:  [city : {type=text, fields={raw={index=false, type=keyword}}}]"
      }
    ],
    "type" : "mapper_parsing_exception",
    "reason" : "Failed to parse mapping [properties]: Root mapping definition has unsupported parameters:  [city : {type=text, fields={raw={index=false, type=keyword}}}]",
    "caused_by" : {
      "type" : "mapper_parsing_exception",
      "reason" : "Root mapping definition has unsupported parameters:  [city : {type=text, fields={raw={index=false, type=keyword}}}]"
    }
  },
  "status" : 400
}
````

Which Elasticsearch version are you running this against?

Thanks for response, I had a conflict in the existing templates, fixed the issue