You are looking at documentation for an older release.
Not what you want? See the
current release documentation.
Geo Envelope Usageedit
Fluent DSL Exampleedit
q
.GeoShapeEnvelope(c => c
.Name("named_query")
.Boost(1.1)
.Field(p=>p.Location)
.Coordinates(this._coordinates)
.Relation(GeoShapeRelation.Intersects)
)Object Initializer Syntax Exampleedit
new GeoShapeEnvelopeQuery
{
Name = "named_query",
Boost = 1.1,
Field = Field<Project>(p=>p.Location),
Shape = new EnvelopeGeoShape(this._coordinates),
Relation = GeoShapeRelation.Intersects
}