我在windows上安装了curl,然后用curl -XPUT http://localhost:9200/test/item/1 -d '{"name":"zach"}' 时,出现下面的错误信息,请问是怎么回事?明明按标准的写法
"error" : "MapperParsingException[failed to parse]; nested: JsonParseException
[Unexpected character (''' (code 39)): expected a valid value (number, String, a
rray, object, 'true', 'false' or 'null')\n at [Source: [B@ce294b; line: 1, colum
n: 2]]; ",
"status" : 400
"error" : "MapperParsingException[failed to parse]; nested: JsonParseException
[Unexpected character (''' (code 39)): expected a valid value (number, String, a
rray, object, 'true', 'false' or 'null')\n at [Source: [B@ce294b; line: 1, colum
n: 2]]; ",
"status" : 400
1 个回复
stab - freshman
赞同来自:
{{{
curl -XGET http://localhost:9200/test/_mapping
}}}