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