Geo Shape Envelope Query Usage

edit

Fluent DSL example

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

Object Initializer syntax example

edit
new GeoShapeEnvelopeQuery
{
    Name = "named_query",
    Boost = 1.1,
    Field = Field<Project>(p => p.Location),
    Shape = new EnvelopeGeoShape(_coordinates),
    Relation = GeoShapeRelation.Intersects,
    IgnoreUnmapped = false
}