I uesd following command from elasticsearch tutorial,
curl -XPUT "http://localhost:9200/movies/movie/1" -d" { "title": "The Godfather","director": "Francis Ford Coppola","year": 1972}"
Which produces following error:
{
"error":"MapperParsingException[failed to parse]; nested: JsonParseException[Unrecognized token 'The': was expecting ('true', 'false' or 'null')
at [Source: [B@d809e3; line: 1, column: 27]]; ",
"status":400
}
curl: (6) Could not resolve host: Godfather,director
curl: (6) Could not resolve host: Ford
curl: (3) [globbing] unmatched close brace/bracket in column 19
Could anyone please help, what i need to do to rectify this error?