// This file is autogenerated, DO NOT EDIT
// mapping/params/similarity.asciidoc:32

[source, python]
----
resp = client.indices.create(
    index="my-index-000001",
    mappings={
        "properties": {
            "default_field": {
                "type": "text"
            },
            "boolean_sim_field": {
                "type": "text",
                "similarity": "boolean"
            }
        }
    },
)
print(resp)
----
