【发布时间】:2014-04-10 18:38:52
【问题描述】:
尝试让批量更新在 ES 1.0.1 上运行。
我在 Postman 内部发布以下内容:
网址POST或PUT转http://localhost:9200/_bulk
请求正文:
{ "update" : { "_index" : "test_people", "_type" : "person", "_id" : "1" }} \n
{ "doc" : { "name":"hi", "age":100 }} \n
我已经尝试过使用和不使用\n。我总是得到
{
"error": "ActionRequestValidationException[Validation Failed: 1: no requests added;]",
"status": 500
}
它也在使用数据创建时做同样的事情:
{
"create": {
"_index": "test_people",
"_type": "person",
"_id": "1"
}
}
{
"name": "hi",
"age": 100
}
更新
我已在 Mac、PC 和 Linux 上尝试过此操作,但我不断收到相同的错误。
【问题讨论】:
标签: elasticsearch