You are looking at preliminary documentation for a future release.
Not what you want? See the
current release documentation.
Geo Shape Circle Usageedit
Fluent DSL Exampleedit
q
.GeoShapeCircle(c => c
.Name("named_query")
.Boost(1.1)
.Field(p=>p.Location)
.IgnoreUnmapped()
.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,
IgnoreUnmapped = false
}