Geo Shape Multi Polygon Query Usage

edit

Fluent DSL example

edit
q
.GeoShapeMultiPolygon(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p => p.Location)
    .Coordinates(_coordinates)
    .Relation(GeoShapeRelation.Intersects)
    .IgnoreUnmapped()
)

Object Initializer syntax example

edit
new GeoShapeMultiPolygonQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = Field<Project>(p => p.Location),
    Shape = new MultiPolygonGeoShape(_coordinates),
    Relation = GeoShapeRelation.Intersects,
    IgnoreUnmapped = false
}