0
votes

I have the following mapping that is giving errors with the latest elasticsearch:

PUT mydoctype/_mapping
{
  "mydoctype": {
    "properties": {
          "location" : {
            "type": "geo_point"
          }
    }
  }
}

I am getting the following error... what is wrong? "Root mapping definition has unsupported parameters: [mydoctype : {properties={location={type=geo_point}}}]"

1

1 Answers

1
votes

You are using mapping type which is no longer supported. See Removal of Mapping Type. Make a following request insteed:

PUT myindex/_mappings
{
    "properties": {
        "location": {
            "type": "geo_point" 
        }
    }
}