NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Geo Shape Circle Query Usageedit
Fluent DSL exampleedit
q .GeoShapeCircle(c => c .Name("named_query") .Boost(1.1) .Field(p => p.LocationShape) .Coordinates(CircleCoordinates) .Radius("100m") .Relation(GeoShapeRelation.Intersects) )
Object Initializer syntax exampleedit
new GeoShapeCircleQuery { Name = "named_query", Boost = 1.1, Field = Field<Project>(p => p.LocationShape), Shape = new CircleGeoShape(CircleCoordinates) { Radius = "100m" }, Relation = GeoShapeRelation.Intersects, }