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 Point Query Usage

edit

Fluent DSL example

edit
q
.GeoShapePoint(c => c
    .Name("named_query")
    .Boost(1.1)
    .Field(p=>p.Location)
    .Coordinates(this._coordinates)
    .Relation(GeoShapeRelation.Intersects)
)

Object Initializer syntax example

edit
new GeoShapePointQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = Field<Project>(p=>p.Location),
    Shape = new PointGeoShape(this._coordinates),
    Relation = GeoShapeRelation.Intersects
}
Was this helpful?
Feedback