我尝试在UBUNTU中运行以下curl命令:
curl -H "content-type: application/JSON" -XPOST http://localhost:9200/classes/class/1/ -d '> {"title":"algorithm","professor":"john"}'
但是它给了我这个错误:
{“错误”:{“ root_cause”:[{“ type”:“ mapper_parsing_exception”,“原因”:“失败 解析“}],” type“:” mapper_parsing_exception“,”原因“:”失败 parse“,” caused_by“:{” type“:” not_x_content_exception“,” reason“:” Compressor 检测只能在某些xcontent字节上调用或压缩 xcontent字节“}},”状态“:400}