Template mapping dosen't work

Copying the solution from the other thread to this one... "mapping" should be "mappings", "location " needs that space to be removed. "_default" should be "_default_" (or "calls", since that is the document type).

This works.

PUT _template/nyc 
 {
    "order":0,
    "index_patterns":"nyc",
    "mappings":{
      "_default_":{
        "properties":{
          "location":{
            "type":"geo_point"
          }
        }
      }
    }
 }
1 Like