孩子"路径"失败是因为"路径"不允许是空的

时间:2018-06-06 08:17:59

标签: elasticsearch kibana

我试图用弹性的kibana在json下面发布但是得到以下错误。我的json格式是否正确或kibana不支持此类请求。

put 
{"index":{"_index":"insights-201806051143","_type":"doc","_id":"63AADB8C-9F84-4B84-90FB-A0E98F2FF927"}}
{"industry":"abc",
"geographiestaxonomysearch":["Americas","North America","United States"]}

以下是我收到的错误:

{
  "statusCode": 400,
  "error": "Bad Request",
  "message": "child \"path\" fails because [\"path\" is not allowed to be empty]",
  "validation": {
    "source": "query",
    "keys": [
      "path"
    ]
  }
}

1 个答案:

答案 0 :(得分:0)

您需要为您的PUT命令指定路径,例如PUT /myIndex