// This file is autogenerated, DO NOT EDIT
// query-dsl/rule-query.asciidoc:71

[source, python]
----
resp = client.search(
    query={
        "rule": {
            "match_criteria": {
                "user_query": "pugs"
            },
            "ruleset_ids": [
                "my-ruleset"
            ],
            "organic": {
                "match": {
                    "description": "puggles"
                }
            }
        }
    },
)
print(resp)
----
