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

[source, python]
----
resp = client.search(
    query={
        "match": {
            "user.id": "kimchy"
        }
    },
    highlight={
        "require_field_match": False,
        "fields": {
            "body": {
                "pre_tags": [
                    "<em>"
                ],
                "post_tags": [
                    "</em>"
                ]
            }
        }
    },
)
print(resp)
----
