Geo Shape Circle Query Usageedit

Fluent DSL exampleedit

q
.GeoShapeCircle(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p=>p.Location)
    .Coordinates(this._coordinates)
    .Radius("100m")
    .Relation(GeoShapeRelation.Intersects)
)

Object Initializer syntax exampleedit

new GeoShapeCircleQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = Field<Project>(p=>p.Location),
    Shape = new CircleGeoShape(this._coordinates) { Radius = "100m" },
    Relation = GeoShapeRelation.Intersects
}