// This file is autogenerated, DO NOT EDIT
// search/search-your-data/sort-search-results.asciidoc:13

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "post_date": {
                "type": "date"
            },
            "user": {
                "type": "keyword"
            },
            "name": {
                "type": "keyword"
            },
            "age": {
                "type": "integer"
            }
        }
    },
)
print(resp)
----
