Geo Shape Polygon Query Usage

edit

Fluent DSL example

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

Object Initializer syntax example

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