// This file is autogenerated, DO NOT EDIT
// query-dsl/geo-bounding-box-query.asciidoc:219

[source, python]
----
resp = client.search(
    index="my_locations",
    query={
        "bool": {
            "must": {
                "match_all": {}
            },
            "filter": {
                "geo_bounding_box": {
                    "pin.location": {
                        "top_left": [
                            -74.1,
                            40.73
                        ],
                        "bottom_right": [
                            -71.12,
                            40.01
                        ]
                    }
                }
            }
        }
    },
)
print(resp)
----
