Provide the scroll parameter to keep the scroll open (#14776)

Without this, a new scroll_id will not be provided for subsequent requests

Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
Tyler Smalley 2017-11-06 09:32:45 -08:00 committed by Tyler Smalley
parent f30eefc2d1
commit f24b2e2d86

View file

@ -26,7 +26,7 @@ export function scrollSearchApi(server) {
handler: (req, reply) => {
const { callWithRequest } = server.plugins.elasticsearch.getCluster('admin');
const { scrollId } = req.payload;
return callWithRequest(req, 'scroll', { scrollId })
return callWithRequest(req, 'scroll', { scrollId, scroll: '1m' })
.then(reply)
.catch(error => reply(handleESError(error)));
}