// This file is autogenerated, DO NOT EDIT
// tab-widgets/inference-api/infer-api-reindex.asciidoc:31

[source, python]
----
resp = client.reindex(
    wait_for_completion=False,
    source={
        "index": "test-data",
        "size": 50
    },
    dest={
        "index": "elser-embeddings",
        "pipeline": "elser_embeddings_pipeline"
    },
)
print(resp)
----
