Geo Shape Polygon Query Usageedit

Fluent DSL exampleedit

q
.GeoShapePolygon(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p => p.Location)
    .Coordinates(_polygonCoordinates)
    .Relation(GeoShapeRelation.Intersects)
    .IgnoreUnmapped(false)
)

Object Initializer syntax exampleedit

new GeoShapePolygonQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = Field<Project>(p => p.Location),
    Shape = new PolygonGeoShape(_polygonCoordinates),
    Relation = GeoShapeRelation.Intersects,
    IgnoreUnmapped = false
}