#NEWLINE# @ classmethod #NEWLINE# def geo_polygon( cls , field , points ) : #NEWLINE# #INDENT# "\n        http://www.elasticsearch.org/guide/reference/query-dsl/geo-polygon-filter.html\n        A filter allowing to include hits that only fall within a polygon of points.\n        Points are in geo-point format\n\n        > filter = ElasticFilter().geo_polygon('pin.location', [[40, -70], [30, -80], [20, -90]])\n        " #NEWLINE# return cls ( geo_polygon = { #NEWLINE# #INDENT# cls : { #NEWLINE# #INDENT# 'points' : points , #NEWLINE# #UNINDENT# } , #NEWLINE# #UNINDENT# } )