// This file is autogenerated, DO NOT EDIT
// index-modules/similarity.asciidoc:522

[source, python]
----
resp = client.indices.create(
    index="index",
    settings={
        "index": {
            "similarity": {
                "default": {
                    "type": "boolean"
                }
            }
        }
    },
)
print(resp)
----
