// This file is autogenerated, DO NOT EDIT
// mapping/fields/routing-field.asciidoc:20

[source, python]
----
resp = client.index(
    index="my-index-000001",
    id="1",
    routing="user1",
    refresh=True,
    document={
        "title": "This is a document"
    },
)
print(resp)

resp1 = client.get(
    index="my-index-000001",
    id="1",
    routing="user1",
)
print(resp1)
----
