通过curl抛出MapperParsingException索引数据?
发布时间:2020-12-13 23:57:17 所属栏目:Linux 来源:网络整理
导读:我接受了来自elasticsearch教程的命令, curl -XPUT "http://localhost:9200/movies/movie/1" -d" { "title": "The Godfather","director": "Francis Ford Coppola","year": 1972}" 产生以下错误: { "error":"MapperParsingException[failed to parse]; nest
我接受了来自elasticsearch教程的命令,
curl -XPUT "http://localhost:9200/movies/movie/1" -d" { "title": "The Godfather","director": "Francis Ford Coppola","year": 1972}" 产生以下错误: { "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 任何人都可以请求帮助,我需要做些什么来纠正这个错误? 解决方法
我认为你在curl命令中正在苦苦挣扎.
尝试在Chrome或Crest客户端扩展中使用感知插件进行镀铬.. https://chrome.google.com/webstore/detail/dev-http-client/aejoelaoggembcahagimdiliamlcdmfm?hl=en https://chrome.google.com/webstore/detail/sense/doinijnbnggojdlcjifpdckfokbbfpbo?hl=en 它非常易于使用且易于理解. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |