【发布时间】:2018-04-30 14:31:23
【问题描述】:
我将引用“www.elastic.co”关于创建 JSON 文档的部分文档:
将一个简单的客户文档索引到客户索引中,“外部”类型,ID 为 1,如下所示: 我们的 JSON 文档:{ "name": "John Doe" }
curl -XPUT 'localhost:9200/customer/external/1?pretty' -d '{"name": "John Doe"}'
我从网址中删除了引号,
curl -XPUT localhost:9200/customer/external/1?pretty -d '{"name": "John Doe"}'
结果是错误
{ "error" : "Content-Type header [application/x-www-formurlencoded] is not supported", "status" : 406}
【问题讨论】:
标签: json elasticsearch indexing document