通过curl抛出MapperParsingException索引数据?

通过curl抛出MapperParsingException索引数据?,第1张

概述我接受了来自elasticsearch教程的命令, curl -XPUT "http://localhost:9200/movies/movie/1" -d" { "title": "The Godfather","director": "Francis Ford Coppola","year": 1972}" 产生以下错误: { "error":"MapperParsingExcepti 我接受了来自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,directorcurl: (6) Could not resolve host: Fordcurl: (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

它非常易于使用且易于理解.

总结

以上是内存溢出为你收集整理的通过curl抛出MapperParsingException索引数据?全部内容,希望文章能够帮你解决通过curl抛出MapperParsingException索引数据?所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/yw/1021526.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-23
下一篇 2022-05-23

发表评论

登录后才能评论

评论列表(0条)

保存