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

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