Skip to content

Commit aa3a743

Browse files
committed
Add note about reindex API to the reindex helper
1 parent cd8aaf2 commit aa3a743

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

elasticsearch/helpers/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,12 @@ def reindex(client, source_index, target_index, query=None, target_client=None,
327327
to another, potentially (if `target_client` is specified) on a different cluster.
328328
If you don't specify the query you will reindex all the documents.
329329
330+
Since ``2.3`` a :meth:`~elasticsearch.Elasticsearch.reindex` api is
331+
available as part of elasticsearch itself. It is recommended to use the api
332+
instead of this helper wherever possible. The helper is here mostly for
333+
backwards compatibility and for situations where more flexibility is
334+
needed.
335+
330336
.. note::
331337
332338
This helper doesn't transfer mappings, just the data.

0 commit comments

Comments
 (0)