我想创建一个只有一个分片从Windows操作系统的索引。我从elastic website得到了代码我已经将简单的引号改为double和3,并且我的curl看起来像这样:curl -XPUT“localhost:9200/twitter?pretty”-H“Content-Type:application/JSON” -d { “设置”:{ “索引”:{ “number_of_shards”:1, “number_of_replicas”:2}}}弹性搜索5.3用一个分片创建索引
当运行此我得到了以下错误:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "Failed to parse content to map"
}
],
"type" : "parse_exception",
"reason" : "Failed to parse content to map",
"caused_by" : {
"type" : "json_parse_exception",
"reason" : "Unexpected character ('s' (code 115)): was expecting double-quote to start field name\n at [Source: [email protected]; line: 1, column: 3]"
}
},
"status" : 400
}
我在做什么错?
它从小提琴手4的魅力 – Radu