0

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 Answer 1

2

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.