Geo Shape Circle Query Usage

edit

Fluent DSL example

edit
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 example

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