// This file is autogenerated, DO NOT EDIT
// mapping/types/semantic-text.asciidoc:159

[source, python]
----
resp = client.indices.create(
    index="test-index",
    query={
        "match": {
            "my_field": "Which country is Paris in?"
        }
    },
    highlight={
        "fields": {
            "my_field": {
                "type": "semantic",
                "number_of_fragments": 2,
                "order": "score"
            }
        }
    },
)
print(resp)
----
