// This file is autogenerated, DO NOT EDIT
// search/search-your-data/knn-search.asciidoc:85

[source, python]
----
resp = client.indices.create(
    index="image-index",
    mappings={
        "properties": {
            "image-vector": {
                "type": "dense_vector",
                "dims": 3,
                "similarity": "l2_norm"
            },
            "title-vector": {
                "type": "dense_vector",
                "dims": 5,
                "similarity": "l2_norm"
            },
            "title": {
                "type": "text"
            },
            "file-type": {
                "type": "keyword"
            }
        }
    },
)
print(resp)
----
