0
votes

enter image description here

As you can see in the attachement, i want to create a mapping called movie but i have the following error: Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters:

{
  "mappings": {
    "movie":{
      "properties": {
        "year": {
          "type": "date"
        }
      }
    }
  }
}

on elasticearch v 7.8

1

1 Answers

1
votes

You are trying to create a mapping using a type, in your case movie, but since version 7.0 the mappings are typeless and you can't create mappings using a type anymore.

You should use the following mapping.

{
  "mappings": {
    "properties": {
      "year": {
        "type": "date"
      }
    }
  }
}

This will create a mapping for the field year with the date date.