NOTE: You are looking at documentation for an older release. For the latest information, see the current release documentation.
Geo Shape Circle Query Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Geo Shape Circle Query Usage
editFluent DSL example
editq
.GeoShapeCircle(c => c
.Name("named_query")
.Boost(1.1)
.Field(p => p.LocationShape)
.Coordinates(CircleCoordinates)
.Radius("100m")
.Relation(GeoShapeRelation.Intersects)
)
Object Initializer syntax example
editnew GeoShapeCircleQuery
{
Name = "named_query",
Boost = 1.1,
Field = Field<Project>(p => p.LocationShape),
Shape = new CircleGeoShape(CircleCoordinates) { Radius = "100m" },
Relation = GeoShapeRelation.Intersects,
}