private FilterContainer _GeoShape(PropertyPathMarker field, Action <GeoShapeFilterDescriptor> filterDescriptor) { var filter = new GeoShapeFilterDescriptor(); if (filterDescriptor != null) { filterDescriptor(filter); } ((IGeoShapeFilter)filter).Field = field; return(this.New(filter, f => f.GeoShape = filter)); }
private BaseFilter _GeoShape(PropertyPathMarker field, Action <GeoShapeFilterDescriptor> filterDescriptor) { var filter = new GeoShapeFilterDescriptor(); if (filterDescriptor != null) { filterDescriptor(filter); } return(this.SetDictionary("geo_shape", field, filter, (d, b) => { b.GeoShapeFilter = d; })); }
/// <summary> /// Filter documents indexed using the geo_shape type. /// </summary> public BaseFilter GeoShape(string field, Action <GeoShapeFilterDescriptor> filterDescriptor) { var filter = new GeoShapeFilterDescriptor(); if (filterDescriptor != null) { filterDescriptor(filter); } return(this.SetDictionary("geo_shape", field, filter, (d, b) => { b.GeoShapeFilter = d; })); }