// This file is autogenerated, DO NOT EDIT
// mapping/types/text.asciidoc:237

[source, python]
----
resp = client.indices.create(
    index="idx",
    settings={
        "index": {
            "mapping": {
                "source": {
                    "mode": "synthetic"
                }
            }
        }
    },
    mappings={
        "properties": {
            "text": {
                "type": "text",
                "store": True
            }
        }
    },
)
print(resp)

resp1 = client.index(
    index="idx",
    id="1",
    document={
        "text": [
            "the quick brown fox",
            "the quick brown fox",
            "jumped over the lazy dog"
        ]
    },
)
print(resp1)
----
