// This file is autogenerated, DO NOT EDIT
// search/search-your-data/retrievers-examples.asciidoc:1051

[source, python]
----
resp = client.search(
    index="retrievers_example",
    retriever={
        "rrf": {
            "retrievers": [
                {
                    "standard": {
                        "query": {
                            "range": {
                                "year": {
                                    "gt": 2023
                                }
                            }
                        }
                    }
                },
                {
                    "standard": {
                        "query": {
                            "term": {
                                "topic": "elastic"
                            }
                        }
                    }
                }
            ],
            "rank_window_size": 10,
            "rank_constant": 1
        }
    },
    source=False,
    aggs={
        "topics": {
            "terms": {
                "field": "topic"
            }
        }
    },
)
print(resp)
----
