public void GeoPolygon(string fieldName, params string[] points) { var filter = new GeoPolygonFilter { Points = points }; this.SetDictionary(fieldName, filter, d => this.GeoPolygonFilter = d); }
private BaseFilter _GeoPolygon(PropertyPathMarker fieldName, string[] points) { var filter = new GeoPolygonFilter { Points = points }; return(this.SetDictionary("geo_polygon", fieldName, filter, (d, b) => { b.GeoPolygonFilter = d; })); }
/// <summary> /// A filter allowing to include hits that only fall within a polygon of points. /// </summary> public BaseFilter GeoPolygon(string fieldName, params string[] points) { var filter = new GeoPolygonFilter { Points = points }; return(this.SetDictionary("geo_polygon", fieldName, filter, (d, b) => { b.GeoPolygonFilter = d; })); }