我想創建一個只有一個分片從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