之前我使用[0, 150)
作为插件,升级到5.0后,插件似乎无法正常工作。如何使用elasticsearch 5.0扫描和滚动大型数据集?
我在尝试使用中的实现时也收到错误 elasticsearch-js docs:
[1, 150]
答案 0 :(得分:0)
无法识别的令牌响应错误是elasticsearch-scrolltoend
中修复的错误 - 请参阅this issue for reference
关于实施,heres how I did it without the elasticsearch-scrolltoend plugin
json
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "Failed to parse request body"
}
],
"type": "illegal_argument_exception",
"reason": "Failed to parse request body",
"caused_by": {
"type": "json_parse_exception",
"reason": "Unrecognized token 'DnF1ZXJ5VGhlbkZldGNoBQAAAAAAAAHKFnV6a2NabEh4VDZLQmdzUzY0Y2tpd0EAAAAAAAAByxZ1emtjWmxIeFQ2S0Jnc1M2NGNraXdBAAAAAAAAAcwWdXprY1psSHhUNktCZ3NTNjRja2l3QQAAAAAAAAHOFnV6a2NabEh4VDZLQmdzUzY0Y2tpd0EAAAAAAAABzRZ1emtjWmxIeFQ2S0Jnc1M2NGNraXdB': was expecting ('true', 'false' or 'null')\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@67ba4d99; line: 1, column: 457]"
}
},
"status": 400
}