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