New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

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
}
Was this helpful?
Feedback