// This file is autogenerated, DO NOT EDIT
// search/retriever.asciidoc:764

[source, python]
----
resp = client.search(
    index="movies",
    retriever={
        "text_similarity_reranker": {
            "retriever": {
                "standard": {
                    "query": {
                        "match": {
                            "genre": "drama"
                        }
                    }
                }
            },
            "field": "plot",
            "inference_id": "my-msmarco-minilm-model",
            "inference_text": "films that explore psychological depths"
        }
    },
)
print(resp)
----
