Geo Polygon Filter

See Geo Polygon Filter

FilterBuilder filter = geoPolygonFilter("pin.location") 
    .addPoint(40, -70)                                  
    .addPoint(30, -80)                                  
    .addPoint(20, -90);                                 

field

add your polygon of points a document should fall within

Note that you can cache the result using GeoPolygonFilterBuilder#cache(boolean) method. See Caching.