From a96f5f72843584af7e25743e3906ec0701bd5859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Wed, 8 Feb 2017 20:51:13 +0100 Subject: [PATCH] Sending raw text as body is no longer supported, wrap scroll_id --- elasticsearch/client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index 94aa9a61..dd9b82d1 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -947,7 +947,7 @@ class Elasticsearch(object): if scroll_id in SKIP_IN_PATH and body in SKIP_IN_PATH: raise ValueError("You need to supply scroll_id or body.") elif scroll_id and not body: - body = scroll_id + body = {'scroll_id':scroll_id} elif scroll_id: params['scroll_id'] = scroll_id @@ -968,7 +968,7 @@ class Elasticsearch(object): if scroll_id in SKIP_IN_PATH and body in SKIP_IN_PATH: raise ValueError("You need to supply scroll_id or body.") elif scroll_id and not body: - body = scroll_id + body = {'scroll_id':[scroll_id]} elif scroll_id: params['scroll_id'] = scroll_id