I am using XPUT command in ElasticSearch and writing the correct command but getting same error again and again.
My code:
curl -XPUT 127.0.0.1:9200/movies -d '
{
"mappings": {
"properties": {
"year": {
"type": "date"
}
}
}
}'
And error is :
unexpected EOF while looking for matching `"'
I am following course on udemy and the instructor is writing the same command and getting the work done.