Pyes: How to pass "type" to GeoBoundingBoxFilter?

How do I pass the type attribute for this filter, like in this example.

{
"query": {
"match_all": {}
},
"filter": {
"geo_bounding_box": {
"pin.location": {
"top_left": {
"lat": 40.73,
"lon": -74.1
},
"bottom_right": {
"lat": 40.717,
"lon": -73.99
}
},
"type": "indexed"
}
}
}

I tried this, but it does not actually seem to care about the extra kwargs :

gq = GeoBoundingBoxFilter("person.location", location_tl={"lat" : lat1,
"lon" : lon1}, location_br={"lat" : lat2, "lon" : lon2},type="indexed")
q = FilteredQuery(MatchAllQuery(), gq)
resultset = conn.search(query=q, indices=[index_name,])

Thanks,
Mohamed,

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.