// This file is autogenerated, DO NOT EDIT
// esql/multivalued-fields.asciidoc:224

[source, python]
----
resp = client.bulk(
    index="mv",
    refresh=True,
    operations=[
        {
            "index": {}
        },
        {
            "a": 1,
            "b": [
                2,
                1
            ]
        },
        {
            "index": {}
        },
        {
            "a": 2,
            "b": 3
        }
    ],
)
print(resp)
----
