From aa3a7431fff5eb02fdd2492aac33085a7b4ea983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 17 Oct 2016 14:01:26 +0200 Subject: [PATCH] Add note about reindex API to the reindex helper --- elasticsearch/helpers/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elasticsearch/helpers/__init__.py b/elasticsearch/helpers/__init__.py index 2aa9d05d..3cd8e224 100644 --- a/elasticsearch/helpers/__init__.py +++ b/elasticsearch/helpers/__init__.py @@ -327,6 +327,12 @@ def reindex(client, source_index, target_index, query=None, target_client=None, to another, potentially (if `target_client` is specified) on a different cluster. If you don't specify the query you will reindex all the documents. + Since ``2.3`` a :meth:`~elasticsearch.Elasticsearch.reindex` api is + available as part of elasticsearch itself. It is recommended to use the api + instead of this helper wherever possible. The helper is here mostly for + backwards compatibility and for situations where more flexibility is + needed. + .. note:: This helper doesn't transfer mappings, just the data.