// This file is autogenerated, DO NOT EDIT
// search/search-your-data/highlighting.asciidoc:605

[source, python]
----
resp = client.search(
    query={
        "match": {
            "user.id": "kimchy"
        }
    },
    highlight={
        "order": "score",
        "fields": {
            "comment": {
                "fragment_size": 150,
                "number_of_fragments": 3
            }
        }
    },
)
print(resp)
----
