From 18f2ac12310a8dc4e69ee0a262663232fe0fb6ea Mon Sep 17 00:00:00 2001 From: Karan Gupta Date: Sat, 21 Dec 2013 01:18:17 +0530 Subject: [PATCH] #29 - corrected target_client assignment --- elasticsearch/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elasticsearch/helpers.py b/elasticsearch/helpers.py index dc7e1638..e4b27148 100644 --- a/elasticsearch/helpers.py +++ b/elasticsearch/helpers.py @@ -205,7 +205,7 @@ def reindex(client, source_index, target_index, target_client=None, chunk_size=5 :arg scroll: Specify how long a consistent view of the index should be maintained for scrolled search """ - target_client = client if target_client is None else target_index + target_client = client if target_client is None else target_client docs = scan(client, index=source_index, scroll=scroll) def _change_doc_index(hits, index):