NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Geo Shape Multi Polygon Query Usageedit
Fluent DSL exampleedit
q .GeoShapeMultiPolygon(c => c .Name("named_query") .Boost(1.1) .Field(p => p.LocationShape) .Coordinates(MultiPolygonCoordinates) .Relation(GeoShapeRelation.Intersects) )
Object Initializer syntax exampleedit
new GeoShapeMultiPolygonQuery { Name = "named_query", Boost = 1.1, Field = Field<Project>(p => p.LocationShape), Shape = new MultiPolygonGeoShape(MultiPolygonCoordinates), Relation = GeoShapeRelation.Intersects, }