// This file is autogenerated, DO NOT EDIT
// mapping/types/rank-vectors.asciidoc:17

[source, python]
----
resp = client.indices.create(
    index="my-rank-vectors-float",
    mappings={
        "properties": {
            "my_vector": {
                "type": "rank_vectors"
            }
        }
    },
)
print(resp)

resp1 = client.index(
    index="my-rank-vectors-float",
    id="1",
    document={
        "my_vector": [
            [
                0.5,
                10,
                6
            ],
            [
                -0.5,
                10,
                10
            ]
        ]
    },
)
print(resp1)
----
