Filter documents prior to bucketing using GeoTile Aggregation

Hi all, I am looking for an example where documents are filtered prior to bucketing via the GeoTile aggregation. For example I would like to have buckets that hold the number of documents where some value is greater than x. Any pointers would be appreciated.