问题描述:
ElasticSearch使用scroll报错
代码:
#scroll
#第一次查询
POST /my_index/_search?scroll=1m
{
"query": {
"match_all": {}
},
"size": 1
}
#第二次查询
GET /_search/scroll?scroll=1m
{
"_scroll_id" : "FGluY2x1ZGVfY29udGV4dF91dWlkDXF1ZXJ5QW5kRmV0Y2gBFFZRSXRxNFlCeWJGWHdURVVMcXgyAAAAAAAAFLoWMExxdV92SXRTOHE2WUpnaWZwT0h6UQ=="
}
报错内容:
{
"error" : {
"root_cause" : [
{
"type" : "illegal_argument_exception",
"reason" : "Unknown parameter [_scroll_id] in request body or parameter is of the wrong type[VALUE_STRING] "
}
],
"type" : "illegal_argument_exception",
"reason" : "Unknown parameter [_scroll_id] in request body or parameter is of the wrong type[VALUE_STRING] "
},
"status" : 400
}