// This file is autogenerated, DO NOT EDIT
// mapping/types/semantic-text.asciidoc:63

[source, python]
----
resp = client.indices.create(
    index="my-index-000003",
    mappings={
        "properties": {
            "inference_field": {
                "type": "semantic_text",
                "inference_id": "my-elser-endpoint-for-ingest",
                "search_inference_id": "my-elser-endpoint-for-search"
            }
        }
    },
)
print(resp)
----
