// This file is autogenerated, DO NOT EDIT
// query-dsl/terms-set-query.asciidoc:85

[source, python]
----
resp = client.index(
    index="job-candidates",
    id="1",
    refresh=True,
    document={
        "name": "Jane Smith",
        "programming_languages": [
            "c++",
            "java"
        ],
        "required_matches": 2
    },
)
print(resp)
----
